How to use Storyboard to make popover that can be used in code?

后端 未结 5 2004
小鲜肉
小鲜肉 2020-12-24 03:56

I\'m building a collection of forms each of which contains several fields. Some of the fields are UITextFields that will display a date. I\'ve created a new cla

5条回答
  •  独厮守ぢ
    2020-12-24 04:24

    Add a UIView in the scene dock.

    You can add it as a subview to any existing view on the view controller.

    You can then toggle it's isHidden property as you require.

    You can add multiple such subviews and create many such popups.

    This technique will save you from setting up a new View Controller and using segues.

提交回复
热议问题