有时候在xib设置中不起作用
[self.tableView initWithFrame:self.view.frame style:UITableViewStyleGrouped];
或者
MyTableViewController *myTableVC= [[MyTableViewController alloc] initWithStyle:UITableViewStyleGrouped]; [self presentModalViewController:myTableVC animated:YES];