So if I want to make an application where you can take a screenshot in the application itself. How can I do it? So, for example, users click on a UIButton and it takes a screenshot.
There is an undocumented, but permitted SDK, feature UIGetScreenImage() . It returns CGImage , for which you are responsible for freeing yourself.
UIGetScreenImage()
CGImage
Are you just trying to take screenshots? Or is there a reason why you need to take a screenshot in the app itself?
Because on the iphone, you can press the power button and the home button at the same time to take a screenshot (which is saved in the camera roll).