I have two views \"A\" and \"B\". A floats in the middle of the window (it\'s not full screen). B, the view which will replace A, is full screen. I\'d like to write a custom
I've done this before. Here's the gist of how I did it:
Capture a UIImage of View A, and set it as the image of View B's image view
UIGraphicsBeginImageContext(view.bounds.size);
[viewA.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
viewB.imageView.image = image;
Set View B's transform (scale and translation) so that it is shrunk to the size of View A and is positioned where View A is on the screen
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:ViewBThe result is an animation that looks like View A is flipping over and zooming to fill the screen with View B as the opposite side.