In the view controller, I installed the following code to initially hide a group of button arrays:
- (void)viewDidLoad { [super viewDidLoad]; for(UIButton * noteButtonItem in noteButtonArray){ noteButtonItem.titleLabel.hidden = YES;
From the .h file:
@property (nonatomic,retain) IBOutletCollection(UIButton) NSArray *noteButtonArray;
And attached via IB
The original hide works fine, but when I “touch” the button (in the simulator), the title does not remain hidden.
What is going on behind the scenes? Is there a way to make them remain hidden until the hidden one is set to YES?
source share