简体   繁体   English

UITableview委托方法的执行顺序

[英]Order of execution of the UITableview delegate method

What happens, when the execution enters the below uitableview delegate method 当执行进入下面的uitableview委托方法时会发生什么

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

each time. 每一次。 Does this method set the height of a random row each time in executes this method? 每次执行此方法时,此方法是否设置随机行的高度? Or is the height set in chronological order of rows. 或按行的时间顺序设置高度。

I mean, is it first row's height set first, then second row's height, then third row's and so on.. Or is it like some nth rows height set first, (n-5)th row set second, (n+2)nd row third and so on. 我的意思是,是先设置第一行的高度,然后设置第二行的高度,然后是第三行的高度,依此类推。或者是像第n行的高度先设置,第(n-5)行设置第二,(n + 2) nd第三排,依此类推。

长期但仅适用于可见视图中的行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM