objective-c - how - ios hide label programmatically
Objective-c-iOS-hide/unhide label, textfield etc (2)
I want to hide/unhide controls of a subview in a view. For example: When a button action occurs, some labels will become hidden then unhide on a subsequent button action and so on. I have implemented this functionality through Interface Builder. How can I do the same implementation programmatically?
[label1 hidden: true];
which hasn't worked for me.
Here is the answer:
YES is Objective-C's version of
To hide a label:
self.yourlabelname.hidden = YES;