My goal is to keep same coordinates for a UIPopoverController with just changing arrow offset.
So basically i have three buttons touching each of them shows up a popover. When presenting this popover it changes position on the screen, but i do not want that.
To be more clear look at screenoshots:



For my popover I wanted the arrow to be top-left instead of top-center (which is default).
I’ve managed to get the result below (screenshot) by setting the
popoverLayoutMarginsproperty of the UIPopoverController. You can use it to reduce the screen-area used in the internal calculations of the UIPopoverController to determine where to show the popover.The code:
I think you’ll be able to get the desired result by tweaking the above.