Reputation: 399
I created a UIButton
in storyboard, declared it as an outlet in the .h and for some reason neither
addflight.userInteractionEnabled=NO;
or
addflight.enabled=NO;
disables it, I don't know what I'm doing wrong?
Upvotes: 0
Views: 492
Reputation: 4404
Please Check if you have connect the IBOutlet from .h file to nib. Also see if there is no view above your button. See UserInteraction Enabled. See The Doc. See this tut.
Upvotes: 1