Can I change the anchor point of a UIPopover animation?

I am trying to achieve the effect of a drop-down menu using UIPopover. When I change the height from 0px to 500px, it seems to stretch 250px up and 250px down ... essentially binding the UIPopover to the starting point of the appearance in the center. I would like the anchor to be the top of the popover, so when I adjust the size, this is the bottom of the window that animates down.

I noticed that this happens automatically if you move the UIPopover to the top of the screen. But how can I achieve the same effect when displaying a dead center?

+2
source share
2 answers

popover? , - popover, , .

0

:

presentPopoverFromBarButtonItem: permittedArrowDirections: : presentPopoverFromRect: INview: permittedArrowDirections: :

UIPopoverArrowDirectionUp allowedArrowDirection


arrowDirections

, popover. , popover . , , UIPopoverArrowDirectionAny popover . UIPopoverArrowDirectionUnknown .

+2

All Articles