How to get a UITableViewCell handle based on NSIndexPath * iOS

I have an indexPath of type NSIndexPath *, a link to a tableView, I want to use them to get the handle of the corresponding cell. How dp am i doing this?

+3
source share
1 answer
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

But note that this method returns nil if the corresponding row is not currently visible (or indexPath is out of the table)

+7
source

All Articles