I am trying my best to profile my app using Instruments and find out where my code is expensive. The [self checkVisibleCells]
method is called in scrollViewDidScroll:(UIScrollView *)scrollView
. I get about two/three cells on screen, depending on their height.
I then determine if the cell is completely visible and mark it as read. Using the answer in this thread: Best way to check if UITableViewCell is completely visible
So far I can only see that self.tableView.visibleCells
is taking a long time. Is it really THAT expensive to fetch visibleCells
? Are there any better methods on how to do this?
Full size screenshot here: https://www.dropbox.com/s/wt8e2uat9t81qt3/Screenshot%202014-05-06%2009.26.25.png