On iPhone or iPad someone know how we can get a CGLayer (not a CALayer) from an UIVie开发者_Python百科w?
Regards
Haven't tried this, but I would do it like this:
- Create the
CGLayer
- Get the layer's context by calling
CGLayerGetContext()
. - Draw the view to the layer's graphics context with
[view.layer renderInContext:]
.
精彩评论