ios - cellForRowAtIndexPath is getting called only once -
i don't know doing wrong cellforrowatindexpath
method of table view getting called once.
here code:
- (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section { nslog(@"--->%d",[collaboratoresdata count]); return [collaboratoresdata count]; }
when collaboratoresdata
array filled, calling [_collaboratortblview reloaddata]
reload table view.
i getting 3
in nslog(@"--->%d",[collaboratoresdata count]);
cellforrowatindexpath
getting called 1 time.
-(uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *cellidentifier = @"cell"; // add placeholder cell while waiting on table data uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier]; if (cell == nil) { cell = [[[uitableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:nil] autorelease]; } cell.selectionstyle=uitableviewcellselectionstylenone; nslog(@"tableview:%d",[indexpath row]);// getting 0 here after not calling return cell; }
check height of cell think thats issue
Comments
Post a Comment