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

popover from UIButton within UIScrollview scrolls to top. #102

Open jtoronto opened 10 years ago

jtoronto commented 10 years ago

I have a UIScrollview within a UIView that has a button roughly halfway down. I have a FPPopover being presented from the button, but the problem is that when the button is tapped, the scrollview scrolls all the way to the top as the popover is presented. The button is now no longer visible and the popover is hanging in the middle of the screen where the button previously was. Has anyone else had this issue?

Here's how I'm presenting the popover.

FPPopoverController *popover = [[FPPopoverController alloc]initWithViewController:pop]; [popover setArrowDirection:FPPopoverArrowDirectionRight]; popover.contentSize = CGSizeMake (150,150); popover.alpha = 1.0;

[popover presentPopoverFromView:sender];

];

}