iphone - Custom UITableViewCell disappearing after scrolled past top -


i have custom uitableviewcell loaded nib file. works fine until scroll down past last cell such table view has bounce when let go.

then, cells towards top of list blank , remain blank until manually refresh table view.

image of issue: [iphone screenshot][1]

here cell row code:

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {  static nsstring *cellidentifier = @"timeentrycellidentifier";  timeentrycell *cell = (timeentrycell *)[tableview dequeuereusablecellwithidentifier:cellidentifier]; if (cell == nil) {     nsarray *nib = [[nsbundle mainbundle] loadnibnamed:@"timeentrycell" owner:self options:nil];      (id oneobject in nib) {         if ([oneobject iskindofclass:[timeentrycell class]]) {             cell = (timeentrycell *) oneobject;         }     } }  timeentry *atimeentry = [appdelegate.timeentries objectatindex:indexpath.row];  cell.clientname.text = atimeentry.clientname; cell.category.text = atimeentry.categoryname; cell.hours.text = [nsstring stringwithformat:@"%@", atimeentry.hours];  [timeentry release];  return cell; } 

any ideas?

[1]: http://dl.nvthost.com.s3.amazonaws.com/screen shot 2011-02-18 @ 2.46.42 pm.png

[1]: http://dl.nvthost.com.s3.amazonaws.com/screen shot 2011-02-18 @ 2.46.42 pm.png

i don't think should doing

[timeentry release]; 

there on next last line. didn't allocate in method, pulled reference delegate. retain count 0 @ point. when ios starts releasing memory timeentry dealloc'd.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -