Reputation: 251
Im using image picker controller to present Camera,After image has been taken it’s entering into ending mode, So i want the delegate to call when camera is completed taking picture. Like by means of NSNotificationCenter .
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate=self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
Upvotes: 0
Views: 277
Reputation: 8599
try this:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:@"_UIImagePickerControllerUserDidCaptureItem" object:nil ];
Upvotes: 1
Reputation:
There is a delegate Method of UIImagePickerController .it has been called after taking picture.
-(void) imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo :(NSDictionary *)info
Upvotes: 0