iphone - Custom Cells in UITable randomly blank -


i have uitable custom uitablecell. when table displays of items blank except disclosure triangle. scroll , down cells randomly turn on , off, @ given moment, blank.

additional information: 1) "right cell". when click on disclosure, goes right place. 2) used exact same code in table , works fine. (yes, changed variables including cell identifier. 3) have disabled reuse of cells, problem still there. 4) have used dummy strings in cell, problem still there 5) cell created nib.

here code in question (version shown doesn't use reuse cells , has dummy text in variables.

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *announcementcellidentifier = @"announcementcellidentifier";  nsarray *nib = [[nsbundle mainbundle] loadnibnamed:@"announcementcell" owner:self options:nil]; announcementcell *cell = [nib objectatindex:0];  nsuinteger row = [indexpath row]; nsarray *keylist = [[nsarray alloc] init]; if ((tableview == self.tableview)) {     keylist = announcementsincommunity; } else {     keylist = filteredannouncementnames; }  …  cell.announcementcreationtimelabel.text = @"00/00/00"; cell.announcementcreatorlabel.text = @"the creator"; cell.accessorytype = uitableviewcellaccessorydisclosureindicator; cell.announcementsubjectlabel.text = @"subject";  return cell; 

}

i'm not sure, can use owner:nil when loading nib this. still don't see other thing might cause issue, might in code section omitted well.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -