if you have a
UIButton that is using simple text as the button title, it's not enough to set the
enabled property of the button to
NO in order for the button to appear disabled. You also need to set it's
alpha property. For example:
nextButton.enabled = NO;
nextButton.alpha = .5;
and here is how you re-enable the button:
nextButton.enabled = YES;
nextButton.alpha = 1;
All the best!
Kevin McNeish
Author of "Learn to Code in Swift":
https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11