I'm trying to delete or hide a section inside a tableview with static cells on it. I am trying to hide it in function viewDidLoad
. Here is the code:
- (void)viewDidLoad
{
[super viewDidLoad];
[self.tableView beginUpdates];
[self.tableView deleteSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:YES];
[self.tableView endUpdates];
[self.tableView reloadData];
}
Still the sections appear. I am using storyboards in it. Can you please help me out?Thanks!