How do I show and/or hide a subview using swift

后端 未结 4 1544
夕颜
夕颜 2021-02-01 15:52

So I\'ve created a ViewControl in my storyboard that has 3 subviews. Each one represents a different view I want to show depending on which table row was selected on the previou

4条回答
  •  青春惊慌失措
    2021-02-01 16:09

    however the fact that isHidden is a naming convention for checking the status and is a getter method but despite that fact in swift we use it as setter and getter property

    view.isHidden = true
    

提交回复
热议问题