I have an UIButton
placed with constraints. In the interface of the view controller I created an IBOutlet
for the height constraint of the button. In viewDidLoad
method I have the code:
myButtonConstraint.constat = 0;
[self.view layoutIfNeeded];
In viewWillAppear
the height of the button is 0, but on the simulator the title of the button is still visible. Even though the title of the button is visible, the button is not tappable, it performs no action.
What is going on?