FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

Not working in iOS 8

Open kcakhil opened this issue 10 years ago • 9 comments

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

kcakhil avatar Aug 22 '14 10:08 kcakhil

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

smartbot avatar Sep 15 '14 08:09 smartbot

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.

fullc0de avatar Sep 17 '14 05:09 fullc0de

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)];

smartbot avatar Sep 17 '14 06:09 smartbot

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

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

jneiluj avatar Sep 17 '14 21:09 jneiluj

Hi all,

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

How can i resolve this crash ?

SoftwareEngieer avatar Oct 30 '14 09:10 SoftwareEngieer

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...

IcuScc avatar Mar 13 '15 17:03 IcuScc

@jneiluj thx!

windfringe avatar Apr 22 '15 06:04 windfringe

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

mvn-tony-hn avatar Jul 25 '15 07:07 mvn-tony-hn

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

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

this is nice!!!

ThornDev avatar Jul 29 '15 06:07 ThornDev