Force popover on iPhone with programmatically created UIPopoverPresentationController

后端 未结 2 1681
误落风尘
误落风尘 2021-02-07 10:30

I need to create a new popover view as the anchor is not visible in Interface Builder during compile time.

According to this post, implementing the delegate method will

2条回答
  •  长发绾君心
    2021-02-07 11:15

    It seems moving the line presentViewController(contentView, animated: true, completion: nil) to the end of the function would fix the issue.

提交回复
热议问题