Ich habe eine Registerkarte mit einer Schaltfläche, klicken Sie darauf und Sie sehen einen UIImagePickerController. Nachdem der Benutzer das Bild gewählt habe, möchte ich eine andere Ansicht. Wie kann ich es tun?Wie zeige ich eine andere Ansicht nach einem UIImagePickerController
Ich habe dies:
- (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];
}
Aber es gibt diesen Fehler zurück:
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from to while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed'