Andrew
Andrew

Reputation: 16051

UIImagePickerViewController dismiss slow

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

Answers (1)

SomaMan
SomaMan

Reputation: 4164

How about -

[picker dismissViewControllerAnimated:YES completion:^(void){
    // stuff I want to do...
}];

Upvotes: 2

Related Questions