dmitric / DLCImagePickerController

ImagePickerController with live filters, radial blur and more. Brought to you by Backspaces.

Home Page:www.backspac.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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