You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Hi,
I'm trying to use the code, but can't seem to get it to run.
This is the code:
`
#import "ViewController.h"
#import "JPSVolumeButtonHandler.h"
@interface ViewController ()
@Property (nonatomic,strong) JPSVolumeButtonHandler *volumeButtonHandler;
@EnD
@implementation ViewController
[super viewDidLoad];
}
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.volumeButtonHandler stopHandler];
[self.volumeButtonHandler startHandler:YES];
[NSTimer scheduledTimerWithTimeInterval:2.0
target:self
selector:@selector(takePhoto)
userInfo:nil
repeats:NO];
}
-(void)takePhoto{
NSLog(@"takePhoto");
self.volumeButtonHandler = [JPSVolumeButtonHandler volumeButtonHandlerWithUpBlock:^{
// Volume Up Button Pressed
NSLog(@"Volume Up Button Pressed");
}
@EnD
`
The text was updated successfully, but these errors were encountered: