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
Post a Comment