IOS UITableView matches those pits

1. eliminate unnecessary rows

TableView.tableFooterView = [[UIView alloc]init];

2., the line is indented to 0, that is, the line ends at both ends

If you are interested can look at the following iOS8 new features by Chun published in the Chun Tips article here, or what the authors of the article here.

Cell.separatorInset = UIEdgeInsetsZero; / / iOS7 +
cell.preservesSuperviewLayoutMargins = NO; / / iOS8 +
+ cell.layoutMargins = UIEdgeInsetsZero; / / iOS8

3. cancel Cell selection

Generally used in the didSelectRowAtIndexPath method, this method does not cause calls to tableView:willSelectRowAtIndexPath:
tableView:didSelectRowAtIndexPath:

[tableView deselectRowAtIndexPath:indexPath animated:YES];