FAQ Database Discussion Community

NSCache to store images for UITableView In SWIFT

i'm new in swift programming and I have search a lot about storing image with NSCache in Swift language. What I have done so far is that I'm getting ids and imageNames with json and I have my data in array and I was able to display image in cells...

NSCache initialization for storing UIImage ios

I am using NSCache to store images. But problem here is once I switch between controllers , NSCache empties. I want the items to be there atleast until application is closed or user logs out . Lets say I have a tab view and I am storing images from the...