Reputation: 38940
I have several UIViews that are on my xib file and would like to dynamically hide them when I want. I have the following code below but for some reason it's not hiding them. Any ideas what I could do?
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//hide all the static UIviews
_searchBox.hidden = YES;
_searchButton.hidden = YES;
_logo.hidden = YES;
NSLog(@"FIRED THE EVENT");
//TODO: create a new view that holds a zoomed in image
}
Upvotes: 0
Views: 3070
Reputation: 4388
Are theses items IBOutlet connected to the ones in your nib file? And are the referencing outlets linked? That is usually the cause.
Upvotes: 6