Search code examples
iphonescreenshot

How to take a screen shot of an app (within an app)? (iPhone)


So what if I want to make an app where you can take a screen shot within the app itself. How would I do that? So for example the users click a UIButton and it takes a picture of the screen.


Solution

  • There is an undocumented, but SDK allowed, function UIGetScreenImage(). It returns a CGImage that you are responsible for releasing yourself.