IOS中tableView每组的头部控件、通过tableView的代理方法控制某一行的cell能否达到高亮选中状态

 一、tableView每组的头部控件

1.控件宽度默认就是tableView的宽度

2.控件高度由下面的代理方法决定

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

 

二、通过tableView的代理方法控制某一行的cell能否达到高亮选中状态

- (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath

posted on 2013-11-22 22:02  林源  阅读(402)  评论(0编辑  收藏  举报

导航