Hitesh Boricha
Hitesh Boricha

Reputation: 114

How to remove image caches when app closed?

I have successfully downloaded images with image caches. I want to remove all image caches when i close the app also want that when the app goes in background state any one have idea how can i do that?

Upvotes: 0

Views: 77

Answers (1)

Bannings
Bannings

Reputation: 10479

You can do this in - (void)applicationDidEnterBackground:(UIApplication *)application that is an UIApplication's delegate method and executed on your app upon entering the background.

Upvotes: 2

Related Questions