Skip to content
New issue

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

Presenting view controllers on detached view controllers is discouraged #74

Open
PatrickNLT opened this issue Aug 6, 2015 · 3 comments

Comments

@PatrickNLT
Copy link

It's important that we are able to present view controllers directly from the content view controller of the popover controller (see #25 for an example).

However, when we do, we get the following warning in the console:
Presenting view controllers on detached view controllers is discouraged

It's only a harmless warning for now, but it could become worse in a future OS update, so it really should be fixed.

I believe the fix should be to be able to pass a parent view controller through the API, and set the content view controller as a child of its parent, using the addChildViewController method (see documentation).

@hblockhus
Copy link

I am having this same issue. Im trying to present an action sheet, and then present an imagepickercontroller when one of the options is selected. A larger issue is when the image picker is dismissed the wypopover gets resized to the entire screen.

@barkiiqbal
Copy link

@hblockhus did you found a fix for your issue. i am having save issue.

I am showing UIImagePickerController above WYPopoverController then the WYPopoverController covers the full screen and goes under the status bar

@hblockhus
Copy link

I just did a work around where i dismiss the WYPopoverController before showing the UIImagePicker, and then once I'm done with the image picker I show the WYPopover again. There is a brief moment once the image picker has vanished before the popover gets redisplayed, but it's better then before!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants