ios - How to add cell to tableview's reuse queue before 'cellForRow:'? -


creating cell costs lot of time , make first scroll lagging, want create cell , add tableview's reuse queue before cellforrow: called.

i use dequeuereusablecellwithidentifier: in viewdidload, when scroll table, cell being created again.

in general drawing methods of scrollview should kept simple possible avoid lag. means should prepare data/model in viewdidload/viewwillappear or in previous viewcontroller. cellforrow should simple set image(s) , text(s) - no checks, no expensive operations such bluring, retrieving data coredata/network, etc.

if not sure thing causes lag, should learn how use timeprofiler. if feel lost in documentation, have this(quite outdated though) tutorial.

with said cannot able anymore until post code discuss.


Comments