I have a very complex UIViewController that loads extremely slow sometimes, it can take 4 or 5 seconds.
I do use Core Data and I have -com.apple.CoreData.SQLDebug 1
set and have ruled out that it is the loading of my data. CoreData: annotation: total fetch execution time: 0.0166s for 314 rows.
I do have this data loaded into a UITableView but was under the impression only the first visible rows get renderend so no matter how many rows I have (< 500 currently) it should not slow the display of the UIView.
I looked at instruments and checked out Time Profiler but I did not see a way to tell which method in this UIView would be slow.
Any suggestions?
UPDATE:
For me this was caused by my custom row heights, those all have to get calculated FIRST before any data in shown:
heightForRowAtIndexPath being called for all rows & how many rows in a UITableView before performance issues?