//在viewDidLoad 方法中 //隐藏多余cell self.tableView.tableFooterView = [[UIView alloc] init];
若是不设tableview为分组模式能够用该方法去除tableview下边多余的cellcode