i want to animate tableviewcell background image with two blinking images on didSelectRowAtIndexPath. We can use following code, but it will show one image in background. However I want gif like image which blinks.
cell.backgroundView = [ [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"correctAnswer.png"]]autorelease];
UIImageView has the ability to do animation with the
animationImagesproperty.You need to have each frame of the animation included in your project, correctAnswer1.png, correctAnswer2.png, etc…
Also, wouldn’t it be better to use
UITableViewCell‘s imageView property? That way you would get your animation in the left of the cell and it wouldn’t interfere with the text or any other parts of the cell…