I have a smallImageView that, when touched, I want to flip and as it flips I also want it to grow to the size of a different view which is much larger (and obviously display the new view on the flipside). Here is what I'm doing:
Code:
[UIView beginAnimations:@"flip" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:smallImageView cache:YES];
[smallImageView removeFromSuperview];
[self.view insertSubview: largerView atIndex:0];
[UIView commitAnimations];
All that happens is the smallImageView disappears and the largerView appears. If I change the transition line to this:
Code:
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
The whole view that the smallImageView is in flips, but I just want the smallImageView to flip. Is this possible without getting into some crazy Core Animation?