title: Change UITableViewStyle & cells programmatically - Made in Storyboard, Mod in Code
body: <p>A view controller class (subclass of UITableViewController) in this utility app is used to display 4 table views, 3 of which are entered via a navigation controller. In the storyboard, the style has been set to <code>UITableViewStyleGrouped</code>.<br ><br >
  The question: Is it possible to programmatically change to <code>Style Plain</code> to use an index and free up some screen space to display the index? I have tried suggestions from other SO questions to modify this in the <code>init</code> and in the <code>viewDidLoad</code> without success.</p>
  
  <pre><code>- (void)viewDidLoad
  {
     [super viewDidLoad];
     self.navigationItem.title = self.title;
  
     if ([[self parentViewController] isKindOfClass:[UITabBarController class]]) {
        [self getNewDataForDate:nil];
        self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
     }
  }
  </code></pre>
  
  <p>Edit 1: The real issue is beyond the above code. Changing the 'style' of a storyboard produced tableview with prototype cells (that are displayed there as grouped) must require some other mods to code. Is it here?</p>
  
  <pre><code>static NSString *CellIdentifier = @"ListCell";
  DetailTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  </code></pre>
  
  <p>The result is this error:</p>
  
  <pre><code>Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:]
  </code></pre>