Jon Sullivan
Jon Sullivan

Reputation: 399

My UIButton does not disable on touch?

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

Answers (1)

HDdeveloper
HDdeveloper

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

Related Questions