uitableview - iOS 6: Reload UITableViewCell height without animation -


i parsing data, i'd display in uiwebview within contentview of cell. problem: height of cell loaded before real height of uiwebview. need refresh height of cell, after webview has finished loading:

[self.tableview reloaddata];

does not reload cell height (but refresh without animation, need) and

[self.tableview beginupdates]; [self.tableview endupdates]; 

or

[self.tableview reloadrowsatindexpaths:[nsarray arraywithobject:[nsindexpath indexpathforrow:0 insection:0]] withrowanimation:uitableviewrowanimationnone]; 

are animation, if use uitableviewrowanimationnone.

what can refresh height after viewdidload without animation?

where did specify cell height?

have tried using uitableviewdelegate method -tableview:heightforrowatindexpath:.

like so:

- (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath {     return [[_cellarray objectatindex:indexpath.row] getdynamicheight]; } 

at least, worked me.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -