title: UITableViewController last Row cut off
body: <p>I am experiencing a problem where in my UITableViewController, the last row is always cutoff by half.</p>
  
  <p>If I have 20 rows, the 20th will be cut off; if I have 30, the 30th will be cut off.</p>
  
  <p>I tried to resize the contentSize, and the frame of the UITableViewController, but it doesn't work.</p>
  
  <p>Is there a way to resize the UITableViewController to the correct size?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Some Code:</p>
  
  <p>Initialize it in another class:</p>
  
  <pre><code> settingsTable = [[SettingTableViewController alloc] init];
      settingsTable.view.frame = CGRectMake(0, 0, 320, 480);
      [self.view addSubview:settingsTable.view];
  </code></pre>
  
  <p>in the UITableViewController:</p>
  
  <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
  return [settingsData count];
  }
  
  - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
  {
  return [[settingsData objectForKey:[NSString stringWithFormat:@"%d", section]] objectAtIndex:0];
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  return [[[settingsData objectForKey:[NSString stringWithFormat:@"%d", section]] objectAtIndex:1] intValue];
  }
  </code></pre>
  
  <p>I didn't resize the frame anywhere in the UITableViewController</p>