paul_1991
paul_1991

Reputation: 231

Objective-C class to load images asynchronously

What are the best classes with which I might asynchronously load images in Objective-C?

Upvotes: 0

Views: 642

Answers (4)

Wasim
Wasim

Reputation: 1349

I found this one the best > HJCache.

Upvotes: 1

Tim Dean
Tim Dean

Reputation: 8292

How about just using NSURLConnection with an URL for the file (either a file or http URL)?

Upvotes: 0

Johan Kool
Johan Kool

Reputation: 15927

This is my stab at it: https://github.com/Koolistov/Image-Cache

Upvotes: 1

pho0
pho0

Reputation: 1751

If you're loading them from disk, just check out the UIImage api:

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html

... 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

Related Questions