We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we see a demo that doesn't use AVCaptureDevice? That class isn't available in the simulator.
The text was updated successfully, but these errors were encountered:
Here is what i have done, hope it helps
-(void)viewDidLoad{ ExpandyButton *torchModeButton = [[[ExpandyButton alloc] initWithPoint:CGPointMake(0,0) title:@"Menu" buttonNames:[NSArray arrayWithObjects:@"Cancel", @"Done",nil] selectedItem:0] autorelease]; [torchModeButton addTarget:self action:@selector(toggleFlashlight:) forControlEvents:UIControlEventValueChanged]; [torchModeButton setHidden:NO]; [[self view] addSubview:torchModeButton]; } - (void)toggleFlashlight:(id)sender { int index=[(ExpandyButton *)sender selectedItem]; if (index==0) { [self performSelector:@selector(cancel)]; } if (index==1) { [self performSelector:@selector(done)]; } }
Sorry, something went wrong.
No branches or pull requests
Can we see a demo that doesn't use AVCaptureDevice? That class isn't available in the simulator.
The text was updated successfully, but these errors were encountered: