FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

Fails if window has many subviews...

Open zedrdave opened this issue 11 years ago • 4 comments

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.

zedrdave avatar Oct 10 '13 04:10 zedrdave

+1

mhennemeyer avatar Dec 10 '13 12:12 mhennemeyer

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

tposch avatar Feb 04 '14 20:02 tposch

+1

tposch's solution worked for me.

jtoronto avatar Aug 19 '14 02:08 jtoronto

+1

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

ruchirV avatar Oct 25 '14 07:10 ruchirV