I\'ve got a grouped UITableView in a UITableViewController and I want to resize it horizontally.
I tried many different ways but none of them was perfect.
If you call - [UITableView setFrame:] from - [UITableViewController viewDidAppear:], it works:
- (void)viewDidAppear:(BOOL)animated
{
[self.tableView setFrame:CGRectMake(x, y, w, h)];
}
In order to avoid having black bars on each side of the table view, set the background color of the application's main window to white:
[[[UIApplication sharedApplication] keyWindow] setBackgroundColor:[UIColor whiteColor]];