how to hide/show a button in swift

前端 未结 4 1823
攒了一身酷
攒了一身酷 2021-02-12 03:16

I\'m trying to have an if statement that will make a button hidden when a label displays a certain status, and appears when the label says something else. The name of the label

4条回答
  •  太阳男子
    2021-02-12 04:05

    SWIFT 3

    I created an

    IBOutlet: loadingBDLogo
    

    To Show:

    loadingBDLogo.isHidden = false
    

    To Hide:

    self.loadingBDLogo.isHidden = true
    

提交回复
热议问题