alvises / FPPopover

FPPopover provides an alternative to the native iOS UIPopoverController, adding support for iPhone and additional opportunities to customize the look and feel of the popovers.
http://www.poeticoding.com/fppopover-a-customizable-uipopovercontroller-for-iphone-and-ipad/
Other
901 stars 250 forks source link

iOS 8 crash, getting bad access #110

Open SoftwareEngieer opened 10 years ago

SoftwareEngieer commented 10 years ago

on iOS 8, getting bad access on -(CGFloat)parentWidth method return _parentView.bounds.size.width; line.

For solution: in presentPopoverFromPoint method

_parentView = [_window.subviews objectAtIndex:0];

line replaced with;

_parentView = _window.rootViewController.view;

dashuai007 commented 9 years ago

when I set popover.arrowDirection = FPPopoverArrowDirectionUp
it was crash and shows Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathMoveToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc, line 254.