面白いのは新旧ViewControllerのビューのスクリーンショットを取ってトランジションさせるところ。
トランジション例
スクリーンショット画像作成コード
CALayerをレンダリングさせるのか。
//Create a UIImageView from the given layer
- (UIImageView*)takeScreenshot:(CALayer*)layer{
UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, YES, [[UIScreen mainScreen] scale]);
[layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIImageView *screnshot = [[UIImageView alloc] initWithImage:image];
return screnshot;
}


