I have the following:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row==0) { static NSString *CellID = @"FlourishCustomCell"; FlourishCustomCell *cell = (FlourishCustomCell *) [tableView dequeueReusableCellWithIdentifier:CellID]; if (cell == nil) { cell = [[[FlourishCustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellID] autorelease]; cell.frame = CGRectMake(0, 0.0, 292.0, 30); } id <NSFetchedResultsSectionInfo> sectionInfo = [[appDelegate.fetchedResultsController sections] objectAtIndex:indexPath.section]; NSLog(@"DATE:%@", [sectionInfo name]);
The cells display and work fine for the else part ( IdeaCustomCell ), but for some extremely unpleasant reason, when I set dateLabel from FlourishCell and then immediately try to access this value, I get null , although I just set it! And the camera does not appear on the screen.
I tried to override the setter method for dateLabel in the FlourishCustomCell class, and I put the NSLog statement there, but for some reason it never gets called.
I have no idea what could be causing this. I mean, what I distribute then and there, but still give me zero. Any ideas?
source share