objective c - When will UITableView reloadData have updated the visibleCells? -
i have uitableview instance tableview
displays data server.
the tableview
have wait until data received, , gets call it's reloaddata
method. fine, works great.
now have particular method want perform right after tableview finishes creating first set of visiblecells
. example i'll call method performfancyactiononvisiblecells
. seems however, reloaddata action asynchronous, can't do
[tableview reloaddata]; [self performfancyactiononvisiblecells];
because visiblecells still empty when second line executed, have wait bit before calling it. brings me question.
to knowledge there no delegate method tableview:didfinishreloadingdata
. if i'd want call performfancyactiononvisiblecells
certainty reloaddata
has finished updating visiblecells
property, be?
cheers,
ep.
to answer question directly, not aware of delegate callback you're looking for.
but, reloaddata
call [tableview cellforrowatindexpath]
on each of visable rows put call @ bottom of method.
i don't think [tableview cellforrowatindexpath]
gets called every cell in table called uikit required before cell made visable (for example, when scrolling).
Comments
Post a Comment