So, I have several user on my pfuser and each user have profile picture. And everytime user enter my app feed page, my app download the user profile picture.
I have no problem caching query but I have problem to cache direct pfuser file, like below code:
let userPicture: AnyObject? = PFUser.currentUser()?["profilePicture"] as? PFFile
userPicture?.cachePolicy = PFCachePolicy.CacheThenNetwork
I got below warning:
Could not find an overload for 'cachePolicy' that accepts the supplied arguments
How can I cache pffile? do I have to store the image in NSUserDeafaults?