TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2015 |
Maintained by Aziz U. Latypov.
Simple Image Store/Cache library.
Import
#import <ALImageStore/ALImageStore+Singleton.h>
than you can get default store with
[ALImageStore defaultStore]
You can specify imageStoreDirectory through:
@property (strong, nonatomic) NSString *imagesFolderName;
And force to use /tmp folder for storing with setting the useTmpDirectory property to true:
[ALImageStore defaultStore].useTmpDirectory = YES;
Which should be done once after for example in AppDelegate.
By default all images are stored at App's Documents directory, under /Images catalogue.
Store can automaticaly flip and rotate images to normal state for example if they are taken from Camera:
[ALImageStore defaultStore].shouldAutoFixImages = YES;
By default this option is swiched off.
Copies an image stored on the device into the store and returns imageID for it.
- (NSString*)imageIDForImageWithFile:(NSString*)filePath;
Saves image on device and returns its ID.
- (NSString*)imageIDForImage:(UIImage*)image withKey:(NSString*)key;
Retrieve an images with given imageID.
- (UIImage*)imageWithID:(NSString*)imageID;
Remove image with given imageID from device.
- (void)removeImageWithID:(NSString*)imageID;
Remove all images from device.
- (void)resetStore;
Aziz U. Latypov, [email protected]
ALImageStore is available under the MIT license. See the LICENSE file for more info.