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

Calling presentPopoverFromPoint following a call to presentPopoverFromView doesn't work #79

Open tspike opened 11 years ago

tspike commented 11 years ago

This appears to be because the _fromView instance variable gets set when presentPopoverFromView is called and never gets cleared.

To work around it in my project, I added the following method to FPPopoverController:

- (void) resetView
{
    SAFE_ARC_RELEASE(_fromView);
    _fromView = nil; 
}

I call this method when I need to move the popover and it appears to work.