Graphics Reference
In-Depth Information
transform = CGAffineTransformRotate (transform, M_PI_2 );
coverView. transform = transform;
coverView. alpha = 0.0 ;
} completion :^( BOOL finished){
//remove the cover view now we're finished with it
[coverView removeFromSuperview ];
}];
}
@end
Figure 8.5 A custom transition implemented using renderInContext:
There is a caveat to this approach: The -renderInContext: method captures the layer's
backing image and sublayers, but does not correctly handle transforms applied to those
sublayers, and doesn't work with video or OpenGL content. CATransition doesn't seem to
be affected by this limitation, so is presumably using a private method to capture the
snapshot.
Search WWH ::




Custom Search