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