ios - How to make UITableViewDataSource ask for cell height before each cellForRowAtIndexPath call? -


i have many cells contains several resizable uitextviews. want make datasource call heightforrowatindexpath before every cellforrowatindexpath call, not when table reloading data. in case return fake heights on reloading, , not need redraw textviews time when updating (performance low when need redraw lets 1000 textviews), in time, when these textviews needed.

use function :

-(cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath 

in controller


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -