How to make a section show all the content? (in a UITableView) -
i playing piece of code , have gotten far. app gets xml feed display job advertisements, , shows them in images attached.
what trying figure out is, how make "description" part display information taken xml file.
would answer hidden in changing in method?
- (uitableviewcell *)tableview:(uitableview *)tv cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *cellidentifier = @"cell"; uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier]; if (cell == nil) { cell = [[[uitableviewcell alloc] initwithframe:cgrectzero reuseidentifier:cellidentifier] autorelease]; } switch(indexpath.section) { case 0: cell.text = abook.title; break; case 1: cell.text = abook.author; break; case 2: cell.text = abook.summary; break; } return cell; }


try implement this:
-(cgfloat ) tableview:(uitableview*) tableview heightforrowatindexpath:(nsindexpath*) indexpath { if(indexpath.section==2) { return 60; } }
Comments
Post a Comment