How do I take a screenshot from the app (in the app)? (IPhone)

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.

+2


a source to share


2 answers


There is an undocumented, but permitted SDK, feature UIGetScreenImage()

. It returns CGImage

, for which you are responsible for freeing yourself.



+2


a source


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).

0


a source







All Articles