I am trying to load a big chunk of data by doing this:
NSString *bigchunk=@".....";
label1.text=bigchunk;//this line is causing my uitableview to jerky scrolling
Is there a way to load a big chunk of data to UILabel faster than setText in order to overcome the jerky scrolling at my uitableview?
Any help appreciated.
This section of this repository might interest you.
https://github.com/rnapier/ios5ptl/tree/master/ch05/TableViewPerformance
It shows you 3 ways of displaying
UITableViews as a test to see which has the best performance. The method through subclassingABTableViewCell(which is included in the repo) has the best performance. You would draw theNSStringwithdrawInRect:ordrawAtPoint. This also works (and as shown in the example) withUIImages and others.In the example linked above, you can test the different ways by commenting/uncommenting code in the
TableViewPerformanceViewController.