how to hide/show a button in swift

前端 未结 4 1883
攒了一身酷
攒了一身酷 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 03:58

    To hide a button, use button.hidden = true https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/index.html#//apple_ref/occ/cl/UIView

提交回复
热议问题