您的位置:首页 > 产品设计 > UI/UE

XZ_iOS之UITableView的代理方法的执行顺序

2016-08-08 23:18 405 查看
1
分区数
- (NSInteger)numberOfSectionsInTableView:(UITableView*)tableView
2
分区header/footer高度
- (CGFloat)tableView:(UITableView
*)tableView heightForHeaderInSection:(NSInteger)section
- (CGFloat)tableView:(UITableView
*)tableView heightForFooterInSection:(NSInteger)section
3
分区row数
- (NSInteger)tableView:(UITableView
*)tableView numberOfRowsInSection:(NSInteger)section
4
row的高度
- (CGFloat)tableView:(UITableView
*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath
5
cell的内容
- (UITableViewCell *)tableView:(UITableView
*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
6
给cell赋值后再调用一次row的高度
- (CGFloat)tableView:(UITableView
*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath
7
分区header/footer的view
- (UIView *)tableView:(UITableView
*)tableView viewForHeaderInSection:(NSInteger)section
8
在调用分区header/footer的view的方法后,不在调用该方法
- (NSString *)tableView:(UITableView
*)tableView titleForHeaderInSection:(NSInteger)section;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: