1

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

4

1 回答 1

2

怎么样 -

[picker dismissViewControllerAnimated:YES completion:^(void){
    // stuff I want to do...
}];
于 2012-04-15T15:30:46.113 回答