nscache Questions
3
Solved
I'm woking on a project in swift 3.0 where I cache the response from the server by using NSCache as to populate them in a UITableView. However for some reason I'm only seeing few images loading whe...
4
Solved
Is there a way to inspect NSCache's contents for debugging purposes?
This would not be used in the App Store. I just would like to be able to see what's going on in there while debugging. The desc...
4
I would like to enhance the code below to cache images and only download them if they haven't been cached previously. I can't seem to find any good examples of how to use URLSession object to do th...
Beasley asked 29/11, 2016 at 18:57
3
This might be the expected behavior, but is not clearly stated by Apple.
I am using NSCache to cache some images for my UICollectionView. When I put the app in the background and open it again (im...
1
Solved
I want to setImage with UIImage directly and not from any Source, Resource.
I already have my image and want to set it with caching to my imageView.
let myImage = UIImage
kingfisherView.kf.setIma...
Droplet asked 21/3, 2019 at 8:41
3
I've noticed that NSCache evicts all of its object when the application goes in background. is that the expected behaviour? is there a way to avoid it?
I would expect it to evict objects when the...
1
I am working with NSCache, I am using NSCache to store images. I am showing images on UITableView. Whenever I add images first they are resized and then added to the table and then to NSCache. evey...
Afterimage asked 16/12, 2013 at 8:15
1
I need to make a dictionary like NSCache which is thread-safe for keeping a cache. However, once in a while, I would need to refresh the contents of the Cache. NSCache does not provide a method to ...
Advocaat asked 4/3, 2013 at 23:41
1
Solved
I am using the code below to set the caching policy of my URLSession via URLConfiguration.
if appDelegateObj.configuration == nil {
appDelegateObj.configuration = URLSessionConfiguration.default
...
Antione asked 17/6, 2017 at 9:34
2
Solved
Note: Please no libraries. This is important for me to learn. Also, there are a variety of answers on this but none that I found solves the issue nicely. Please don't mark as duplicate. Thanks in a...
Hotspur asked 25/6, 2017 at 5:49
4
Solved
I'm writing an app that needs to keep an in-memory cache of a bunch of objects, but that doesn't get out of hand so I'm planning on using NSCache to store it all. Looks like it will take care of pu...
Broeker asked 27/12, 2010 at 23:47
2
Solved
I am facing some issues in terms of what caching mechanism to implement for my iOS application. First, lets explain my situation.
I want to request thousands of nearby locations records (10000 and...
1
Solved
I currently use a Subclass of NSCache to store some images (values) with their corresponding names (Keys) and it seems to work fine, when the app is in the foreground. However, when I press the hom...
Astronomical asked 19/11, 2015 at 18:46
5
Solved
Can someone give an example on how to use NSCache to cache a string?
Or anyone has a link to a good explanation? I can't seem to find any..
Lustre asked 22/4, 2011 at 13:29
3
Solved
My application is a kind of picture gallery. when ever user clicks on icon in the gallery, need to display the images( Landscape 2 images , portrait 1 image). The pictures may be more than 100. I u...
Salangi asked 8/4, 2015 at 9:42
1
Solved
I'm developing an app that similar to Instagram feed (tableviews with cells that contain images and some labels).
For all the data I'm getting from the database, I'm using Data Task (because it do...
Scientist asked 3/4, 2015 at 14:59
1
Solved
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 .
Let...
Modish asked 6/2, 2015 at 13:0
2
Solved
We are using NSCache for UIImages in our app. This works fine on iOS versions smaller than 7. When a memory warning occurs, NSCache releases objects as intended.
However, on iOS 7, our app crashes ...
Thyme asked 23/10, 2013 at 15:32
2
Solved
I have been looking for a clear cut way to do this and have not found anywhere that will give an example and explain it very well. I hope you can help me out.
Here is my code that I am using:
- (...
Gorlin asked 11/10, 2013 at 19:59
2
I have a PhotoGrid with three photos on each row, implemented using UITableView.
I have an in-memory cache (using NSCache) which has a capacity for 100 images, so at one time I will be having at m...
Botti asked 7/1, 2013 at 6:54
1
Does anyone by coincidence know how I can empty the cache memory of the iOS app that I am developing, in the moment it goes to the background (applicationDidEnterBackground)? I have investigated ab...
2
Solved
I loaded XML data (including images, text,...) from server and display that data on iphone screen.
How can i cache data to re-load that screen when i visit that screen other time. It will be faste...
Marduk asked 14/9, 2010 at 9:42
2
Solved
I'm wondering if it's better to use one global instance of NSCache or several ones for each component that need it.
For example, I have several view subclasses that draw content into images and cac...
Soucy asked 5/12, 2012 at 16:45
2
Solved
NSCache: Always getting "not key value coding-compliant" when trying to access cached item
I'm attempting to use NSCache to store PNGs as NSData. Whenever I try to get one back out of the cache, whether the cache is empty or not, I get:
2012-10-26 09:49:28.860 SledMap[55917:11503] * Ter...
Contrastive asked 26/10, 2012 at 15:3
2
Solved
I am very new to NSCache.
I have an API call which results in several objects.How to store these objects in NSCache so that I don't require to call the API again.
How much data can be stored in N...
Foveola asked 10/10, 2012 at 10:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.