2010-12-16 254 views
0

J'ai une barre d'onglets avec un bouton, vous cliquez dessus et vous voyez un UIImagePickerController. Après que l'utilisateur a choisi l'image, je veux une autre vue. Comment puis-je le faire?Comment afficher une autre vue après un UIImagePickerController

J'ai ceci:

- (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]; 
} 

Mais il renvoie cette erreur:

* 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'

Répondre