In my custom cell subclass, when user selects a cell I want to change an image on it, which is a property by retain. No nib, everything is with code.
Problems:
-First, Even nothing is selected still the cell appears with the new image on it.
-Second, when I click nothing changes on the cell;
-(void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
UIImage *cry = [UIImage APP_CRYSTAL_SELECTED];
self.leftImage = [[[UIImageView alloc] initWithImage:cry] autorelease] ;
[self.contentView addSubview:self.leftImage];
}
You do not check to see if it is selected or not in your code example.