Reputation: 16051
I have some code which runs when UIImagePickerViewController picks an image, but despite [picker dismissModalViewControllerAnimated:YES];
being the first line, it waits until all the code is complete before it dismisses. How can i stop this from happening?
Upvotes: 1
Views: 302
Reputation: 4164
How about -
[picker dismissViewControllerAnimated:YES completion:^(void){
// stuff I want to do...
}];
Upvotes: 2