标签: iphone objective-c
我有一些代码在UIImagePickerViewController选择图像时运行,但是尽管[picker dismissModalViewControllerAnimated:YES];是第一行,它会等到所有代码完成后再解除。我怎么能阻止这种情况发生?
[picker dismissModalViewControllerAnimated:YES];
答案 0 :(得分:2)
怎么样 -
[picker dismissViewControllerAnimated:YES completion:^(void){ // stuff I want to do... }];