iphone Programming Glossary: imgcache
Cache URL images iphone UITableview http://stackoverflow.com/questions/2265137/cache-url-images-iphone-uitableview ImageCache.h #import Foundation Foundation.h @interface ImageCache NSObject @property nonatomic retain NSCache imgCache #pragma mark Methods ImageCache sharedImageCache void AddImage NSString imageURL UIImage image UIImage GetImage NSString.. BOOL DoesExist NSString imageURL @end ImageCache.m #import ImageCache.h @implementation ImageCache @synthesize imgCache #pragma mark Methods static ImageCache sharedImageCache nil ImageCache sharedImageCache @synchronized ImageCache class .. of a singleton. sharedImageCache super alloc return sharedImageCache return nil id init self super init if self nil imgCache NSCache alloc init return self void AddImage NSString imageURL UIImage image imgCache setObject image forKey imageURL NSString..
|