How to get the cell object in tableView:(UITableView *)tableView heightForRowAtIndexPath function?

后端 未结 5 1660
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 19:19

I wand to know the content of the cell when returning the heightForRowAtIndexPath. In this function how do I get the cell object?

- (CGFloat) tableView:(UITa         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 20:10

    Call self (the delegate) rather than the tableView itself.

    id cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
    

提交回复
热议问题