title: How to delete sections from static cell tableview
body: <p>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 <code>viewDidLoad</code>. Here is the code:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      [self.tableView beginUpdates];
      [self.tableView deleteSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:YES];
      [self.tableView endUpdates];
  
      [self.tableView reloadData];
  }
  </code></pre>
  
  <p>Still the sections appear. I am using storyboards in it. Can you please help me out?Thanks!</p>