siva
siva

Reputation: 251

How to know Camera Is completed taking taking picture In ios

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

Answers (2)

Kex
Kex

Reputation: 8599

try this:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:@"_UIImagePickerControllerUserDidCaptureItem" object:nil ];

Upvotes: 1

user3432164
user3432164

Reputation:

There is a delegate Method of UIImagePickerController .it has been called after taking picture.

-(void) imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo :(NSDictionary *)info

Upvotes: 0

Related Questions