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?
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.