环境:iOS7 / 8,XCode6
ViewController_A(嵌入在NavController_A中)分段到ViewController_B(嵌入在NavController_B中),然后ViewController_B展开回ViewController_A。 从A到B的segue是“模态”和“动画”,表示设置为“当前上下文”,转换设置为“默认”
这很好用。 但是,如果我通过[self presentViewController]从ViewController_B打开UIImagePickerController,然后取消它,然后从ViewController_B退回到ViewController_A抛出“不平衡调用开始/结束外观转换
更多细节: 在ViewController_B(符合UIImagePickerControllerDelegate)中,一个按钮打开ActionSheet,其中包含选择图像或拍照的选项。点击“从lib中选择”会调用以下方法:
- (void) selectPhoto
{
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:nil];
}
我做了很多研究,知道是什么原因可以导致这个消息,但是到目前为止还没有找到确切的原因。
任何指针都表示赞赏。
由于 麦克