Present UIPopoverController in same position with changing just arrow offset

后端 未结 3 1845
不知归路
不知归路 2020-12-29 08:04

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

3条回答
  •  抹茶落季
    2020-12-29 08:32

    You can't do it as-is with Apple's built-in UIPopoverViewController class. But it should be fairly simple and logical to implement your own popover view controller (just some very basic 2D geometry and a bit of digging in UIView's docs).

提交回复
热议问题