-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath //行点击事件spa
NSIndexPath *path = [self.tableView indexPathForSelectedRow]; //得到被选中的indexPath能够获得section,roworm
[self.tableView reloadRowsAtIndexPaths:[self.tableView indexPathsForSelectedRows] withRowAnimation:UITableViewRowAnimationNone]; //刷新table指定行的数据事件
tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; //UITableViewCellSeparatorStyleNone;或者赋值为NO取消分割线ip
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; //取消分隔线it
tableView.separatorColor = [UIColor lightGrayColor];//分隔线颜色io
tableView.allowsMultipleSelection = YES;//容许tableView多选table
[_tableView setSectionHeaderHeight:kHeaderHeight];sso
[_tableView setSectionFooterHeight:0];im
[_tableView setRowHeight:50];数据
self.tableView.backgroundView 优先级高,若是要设置backgroundColor的时候要先把view设置为nil
self.tableView.backgroundColor = [UIColor redColor];
//在tableView的头部或者尾部添加view,footerView宽度是不用设置的
xxxView.bounds = CGRectMake(0,0,0,height);
self.tableView.tableFooterView =xxxView;
self.tableView.tableHeaderView =xxxView;
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, xx, 0); //可偏移位置
[cell setAccessoryType:UITableViewCellAccessoryNone]; //设置右侧箭头