开发者

how to get a handle on the UITableViewCell given NSIndexPath* iOS

开发者 https://www.devze.com 2023-03-05 21:06 出处:网络
I have the indexPath of type NSIndexPath*,a reference to the tableView, I want to use 开发者_运维技巧these to get a handle on the corresponding cell.How dp I do this?UITableViewCell *cell = [tableView

I have the indexPath of type NSIndexPath*,a reference to the tableView, I want to use 开发者_运维技巧these to get a handle on the corresponding cell.How dp I do this?


UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

But note that that method returns nil if corresponding row is not visible at the moment (or indexPath is out of the table's range)

0

精彩评论

暂无评论...
验证码 换一张
取 消