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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -