UITableViewDelegate方法

来源:互联网 发布:比特币挖矿需要网络吗 编辑:程序博客网 时间:2024/05/17 04:06

UITableView代理方法更多的集中到对tableView的操作中
1.选中某行cell调用此方法

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

2.自定义每组头部的view 需要使用到UITableViewHeaderFooterView

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section; 

3.自定义每组尾部的View 需要使用到UITableViewHeaderFooterView

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
0 0
原创粉丝点击