views:

100

answers:

2

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.

A: 

Are you just trying to take screenshots? Or is there a reason you need to take a screenshot in the application itself?

Because on the iphone you can hit the power button and home button at the same time to take a screenshot (which is saved the to the camera roll).

Paul
I am trying to take a screenshot in the application itself.
thyrgle
+2  A: 

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

chpwn
Thanks a lot. I'll give it a try.
thyrgle
Hi,What do you mean by SDK allowed ? Will the application be accepted by Apple ?Regards,
Quentin
That means allowed for the App Store, yes.
chpwn