UIImagePickerViewController解除缓慢

时间:2012-04-15 15:23:42

标签: iphone objective-c

我有一些代码在UIImagePickerViewController选择图像时运行,但是尽管[picker dismissModalViewControllerAnimated:YES];是第一行,它会等到所有代码完成后再解除。我怎么能阻止这种情况发生?

1 个答案:

答案 0 :(得分:2)

怎么样 -

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