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
902 stars 250 forks source link

Not working in iOS 8 #106

Open kcakhil opened 10 years ago

kcakhil commented 10 years ago

FPPopover is not working in iOS 8. Please fix it for iOS 8.

smartbot commented 10 years ago

Not sure if this is the same issue, but it seems that the popover doesn't display correctly in iOS 8.

screen shot 2014-09-15 at 2 45 41 am

fullc0de commented 10 years ago

It seems that items of [UIApplication sharedApplication].windows' subviews is changed. First one of items is being used by FPPopoverController to present a popoverview by adding it as a subview.

smartbot commented 10 years ago

I ended up changing the _contentView frame location (by 30 pixels) in FPPopoverController.m to adjust for the overlap:

_contentView = [[FPPopoverView alloc] initWithFrame:CGRectMake(0, 30, self.contentSize.width, self.contentSize.height)];

jneiluj commented 10 years ago

In FPPopoverController.m -(void)presentPopoverFromPoint:(CGPoint)fromPoint

I replaced: _parentView = [_window.subviews objectAtIndex:0]; with _parentView = [_window.subviews lastObject];

SoftwareEngieer commented 10 years ago

Hi all,

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

How can i resolve this crash ?

IcuScc commented 9 years ago

Hi to everybody. @jneiluj your solution is perfect..!! thanks.

my problem was, when i open view controller from tabbar using segue, the popover not show.. with your solution i solve it...

windfringe commented 9 years ago

@jneiluj thx!

mvn-tony-hn commented 9 years ago

@jneiluj thank so much. I hope this issue will be updated soon!

ThornDev commented 9 years ago

In FPPopoverController.m -(void)presentPopoverFromPoint:(CGPoint)fromPoint

I replaced: _parentView = [_window.subviews objectAtIndex:0]; with _parentView = [_window.subviews lastObject];

this is nice!!!