Sotiris Kaniras Sotiris Kaniras - 1 year ago 78
Swift Question

PFImageView - How to clear cache?

I'm using PFImageViews a lot in my app, since I need its caching ability... The thing is, that my app now takes 108.9MBs of storage! Is there any way to free up this storage?

Answer Source

So, in order to delete all cached images, we simply have to call:

PFFile.clearAllCachedDataInBackground()