设置列表滚动位置
[myTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
[self resignFirstResponder];
在viewWillAppear里面添加如下代码:
//分组列表头部空白处理
CGRect frame = myTableView.tableHeaderView.frame;
frame.size.height = 0.1;
UIView *headerView = [[UIView alloc] initWithFrame:frame];
[myTableView setTableHeaderView:headerView];
//解决cell重用
while ([cell.contentView.subviews lastObject] != nil) {
[(UIView *)[cell.contentView.subviews lastObject] removeFromSuperview];
}