We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I present a ViewController from the ImagePickerController? My code:
func wrapperDidPress(images: [UIImage]) { let images = imageAssets Variablen.currentCreateImages = images NSNotificationCenter.defaultCenter().postNotificationName("updatePageView", object: nil) //help let view = Variablen.createViewsStoryboard.instantiateViewControllerWithIdentifier("CustomImagesPicker") as! CustomImagesPicker self.presentViewController(view, animated: true, completion: nil) }
I get this Error : Attempt to present ... on ... whose view is not in the window hierarchy!
The text was updated successfully, but these errors were encountered:
Hey @julianpomper.
You are calling the delegate method, so I guess this is in your previous view controller. If you do this:
imagePickerController.presentViewController(controller, animated: true, completion: nil)
It should do the work already.
Sorry, something went wrong.
Oh yes thanks!
No branches or pull requests
How can I present a ViewController from the ImagePickerController?
My code:
I get this Error :
Attempt to present ... on ... whose view is not in the window hierarchy!
The text was updated successfully, but these errors were encountered: