ALImageStore 0.1.6

ALImageStore 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2015

Maintained by Aziz U. Latypov.



  • By
  • aziz u. latypov

Simple Image Store/Cache library.

Usage

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.

API

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;

Requirements

Installation

Author

Aziz U. Latypov, [email protected]

License

ALImageStore is available under the MIT license. See the LICENSE file for more info.