Is there a way to select a segue anchor programmatically?

前端 未结 4 1984
有刺的猬
有刺的猬 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:52

    You can't programmatically create segue's as explained here: Creating a segue programmatically, however, you can configure which destination controller you want to display at run-time. This is explained in the apple documentation here: Configuring the Destination Controller When a Segue is Triggered.

    Hopefully this helps!

提交回复
热议问题