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

Fails if window has many subviews... #87

Open
zedrdave opened this issue Oct 10, 2013 · 4 comments
Open

Fails if window has many subviews... #87

zedrdave opened this issue Oct 10, 2013 · 4 comments

Comments

@zedrdave
Copy link

My window has a background subview and the popOver gets added to this subview instead of the RootViewController's view (which means it doesn't get displayed in most cases).

I found that replacing the following line:

_parentView = [_window.subviews objectAtIndex:0];

By

_parentView = _window.rootViewController.view;

in presentPopoverFromPoint() fixed the problem for me.

@mhennemeyer
Copy link

+1

@tposch
Copy link

tposch commented Feb 4, 2014

_parentView = [_window.subviews lastObject]; will ensure that the parent view is the top most subview in the window.

@jtoronto
Copy link

+1

tposch's solution worked for me.

@ruchirV
Copy link

ruchirV commented Oct 25, 2014

+1

Thanks for the bug fix! But somehow I saw the issue only after upgrading to iOS8. Anyway, problem solved. 👍

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

5 participants