-1

When user press home button or if application goes into background due to any other reason, then iOS first take a screen shots and save it, I want to know location of that screen shot image and how can I delete it?

1 Answer 1

1

We had same problem earlier. I am not sure where exactly it get stored. As far as I know, its not possible to delete that image.

But the solution we have applied is, we have just created a UIImageView of device screen size and added it to UIWindow in

- (void)applicationDidEnterBackground:(UIApplication *)application

method. When app becomes active, we are removing that UIImageView. We wrote that code in following method:

- (void)applicationWillEnterForeground:(UIApplication *)application

Hope, this helps.

1
  • Thanks for you reply. I tried it. But I want to delete that captured image which save in device when home button pressed. Aug 8, 2014 at 13:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.