In my core data bound SCArrayOfObjectsModel, I am trying to set the displayImageNameAsCellText property of my SCImagePickerCell so it will not show the image name in the cell. I'm not sure if I'm just setting it in the wrong place or what, but it doesn't appear to be working like I expect. The cell's textLabel still shows the image filename.
- (void)tableViewModel:(SCTableViewModel *) tableViewModel willDisplayCell:(SCTableViewCell *) cell forRowAtIndexPath:(NSIndexPath *) indexPath
{
cell.selectionStyle = UITableViewCellSelectionStyleGray;
// Detail view
if (tableViewModel.tag == 1)
{
// Don't want text on imagepicker cell
if ([cell isKindOfClass:[SCImagePickerCell class]])
{
SCImagePickerCell *tmpCell = (SCImagePickerCell *) cell;
tmpCell.displayImageNameAsCellText = NO;
//cell.textLabel.text = @"";
return;
}
else if ([cell isKindOfClass:[SCDateCell class]])
{
SCDateCell *tmpCell = (SCDateCell *) cell;
tmpCell.datePicker.datePickerMode = UIDatePickerModeDate;
}
}
}