Is there a way to select a segue anchor programmatically?

前端 未结 4 1987
有刺的猬
有刺的猬 2021-02-07 09:54

Suppose I have a Storyboard containing a view that contains a button. When the user presses this button, a popover comes up.

Thus, I need to set an anchor by dragging th

4条回答
  •  悲哀的现实
    2021-02-07 10:28

    I had the same problem where I was creating a BarButtonItem programmatically. You may also be able to get around it by creating an invisible, disabled button which you can set as the anchor in IB.

提交回复
热议问题