Usage example?
tbergeron opened this issue · comments
Hi,
I'm currently playing with DLCImagePickerController and I have this code done:
/// .h
@interface CameraViewController : UIViewController<DLCImagePickerDelegate>
///
- (void)viewDidLoad
{
[super viewDidLoad];
self.imagePicker = [[DLCImagePickerController alloc] init];
[self presentViewController:self.imagePicker animated:true completion:nil];
}
- (void)imagePickerController:(DLCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[picker dismissViewControllerAnimated:true completion:nil];
[self doneWithImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"]];
}
- (void)imagePickerControllerDidCancel:(DLCImagePickerController *)picker
{
NSLog(@"CANCEL");
}
None of the imagePickerController delegates method get called. When I press the X cancel button it does nothing and when I snap a picture and press done the button disables and I can only switch filters and do nothing else.
Is there anything I got wrong in my code? Is there any API docs or usage example for this project or not?
Thanks
Just noticed there's an example right here in the repo.
https://github.com/gobackspaces/DLCImagePickerController/blob/master/Classes/PhotoViewController.m