ios - Set the row height of tableview dynamically in iPhone -
i having app in have tableview on first view.
i creating custom tableviewcell on tableview's sec row.
cell1 = (tableviewcell *)[tableview dequeuereusablecellwithidentifier:simpletableidentifier]; if (cell1 == nil) { nsarray *nib = [[nsbundle mainbundle] loadnibnamed:@"tableviewcell" owner:self options:nil]; cell1 = [nib objectatindex:0]; }
my custom view's size varies accordingly there dynamic contents loading in it.
so how calculate size of custom tableviewcell , pass main tableview?
please help me.
thanks in advance.
use heightforrowatindexpath
- (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath; { homecoming your_height_here; }
ios objective-c iphone uitableview
No comments:
Post a Comment