【发布时间】:2010-12-18 08:39:14
【问题描述】:
我有一个带有按钮的标签栏,单击它会看到一个 UIImagePickerController。 用户选择图像后,我想要另一个视图。我该怎么做?
我有这个:
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage : (UIImage *)image
editingInfo:(NSDictionary *)editingInfo
{
imageToPost.image = image;
[picker dismissModalViewControllerAnimated:YES];
PostPopupViewController *postPopup = [[PostPopupViewController alloc] init];
[self presentModalViewController:postPopup animated:YES];
}
但它返回此错误:
* 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“尝试开始模态转换,而转换已经在进行中。等待 viewDidAppear/viewDidDisappear 知道当前转换已经完成'
【问题讨论】: