Reputation: 5742
I have UITableView and cell's are customized and have a UIImage with UIbutton, UIlabel and another UIbutton. When user clicks the UIImage i want this image to flip and display another image here. The flip should be an animation excatly same as the FlipSide template.
Thanks,
Upvotes: 1
Views: 1662
Reputation: 7644
You can try with the built-in animations for the same:
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:cell cache:YES];
[oldImageView removeFromSuperview];
[cell addSubview:newImageView];
[UIView commitAnimations];
Of course, your cell and imageViews would have to be created/referenced before-hand. I haven't tried this myself but it should do the trick.
Upvotes: 1