I have 200+ uiLabels on a long scrollview, I need to improve scrolling performance. Is it better to hide and unhide labels, or release them and recreate them, when they are out of view?
I have put tags on them, I am currently using those to hide / unhide with:
for (int i=0; i<42; i++) {
[theScroller viewWithTag:i].hidden = NO;
}
and visa versa, triggered by scroll contentOffset.y values..
I have my uiLabels collection in a plist so its also easy to release and rebuild them?
thanks for any help..
@Mark yes it would be better to release the labels,as if they are out of view,not in use,so they will improve the performance and also help you for memory management.