//去掉多餘的cellspa
self.contactsTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];3d
//tableView出現的時候,清除選中狀態ci
若是是tableViewControllerit
self.clearsSelectionOnViewWillAppear = YES;io
若是是viewController,在viewWillAppear方法裏添加console
[self.tableView deselectRowAtIndexPath:[self.contactsTableView indexPathForSelectedRow] animated:YES];table