开发者

CGLayer from an IUView

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:

  1. Create the CGLayer
  2. Get the layer's context by calling CGLayerGetContext().
  3. Draw the view to the layer's graphics context with [view.layer renderInContext:].
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜