Emailing full screen of iPhone app

前端 未结 6 1397
无人及你
无人及你 2020-12-28 11:04

I am developing an iPhone app for creating images using built in graphics and user defined text.

I want to be able to have my app, with built in graphics and user de

6条回答
  •  星月不相逢
    2020-12-28 11:53

    I have no idea if this will work, but you can try creating a bitmap-backed graphics context, then getting your root view's Core Animation layer and calling its -renderInContext: method. That might do it, but I've never tried it.

    Perhaps, though, you should consider a different approach. Is it just that you've written a bunch of custom drawing code that's visible on screen and you want to be able to draw into a file or memory buffer too? If so, perhaps you should factor that drawing code out of your view and into a separate object that your view simply uses. That would allow you to very easily draw it both ways.

提交回复
热议问题