override func viewDidLoad() {
super.viewDidLoad()
button.isHidden = false
}
I am trying to hide the button right at the beginning then if a value is true, then I would show the button. How could I do it?
答案 0 :(得分:0)
For hiding use:
button.alpha = 0
or
button.isHidden = true