简体   繁体   中英

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?

因此,为了删除所有缓存的图像,我们只需调用:

PFFile.clearAllCachedDataInBackground()

要手动清除Parse查询缓存,可以调用(在Swift中):

query.clearCachedResult()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM