//隐藏空的cell -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { if ([self numberOfSectionsInTableView:tableView]==(section+1)) { return [UIView new]; } return nil; }