Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get array of all index paths for the cells in a UITableView?

Is there a simple way to get array of all index paths for the cells in a UITableView?

like image 225
Jonah Avatar asked Nov 20 '25 02:11

Jonah


1 Answers

Since you are the one that told the table view how many sections and rows per section you had, you can use that same data - or in fact even call the same methods on your data source to ask that question from elsewhere.

like image 139
Kendall Helmstetter Gelner Avatar answered Nov 22 '25 16:11

Kendall Helmstetter Gelner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!