Reputation: 231
What are the best classes with which I might asynchronously load images in Objective-C?
Upvotes: 0
Views: 642
Reputation: 8292
How about just using NSURLConnection with an URL for the file (either a file or http URL)?
Upvotes: 0
Reputation: 15927
This is my stab at it: https://github.com/Koolistov/Image-Cache
Upvotes: 1
Reputation: 1751
If you're loading them from disk, just check out the UIImage api:
... for example:
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:FILENAME_WITHOUT_EXTENTION ofType:@"png"]];
if you're loading images from the network, I like using the ASIHTTPRequest (also supports Queues) API. Check it out here:
http://allseeing-i.com/ASIHTTPRequest/How-to-use
Upvotes: 0