Latest 0.0.5
Homepage https://github.com/apploft/APLImageCache
License MIT
Platforms ios 7.0, requires ARC
Dependencies FastImageCache
Authors

A simple wrapper for the FastImageCache.

  • Easy setup
  • Provides UIImageView category for requesting and cancelling.
  • Support for custom image downloader classes.

Installation

Install via cocoapods by adding this to your Podfile:

pod "APLImageCache", "~> 0.0.5"

Usage

Import header file:

#import <APLImageCache/APLImageCache.h>

Setup:

An example that caches two types of images (user photos and book covers):

NSDictionary *coverDescription = @{ APLImageType : @"bookCover", APLImageWidth : @90, APLImageHeight : @135 };
NSDictionary *photoDescription = @{ APLImageType : @"userPhoto", APLImageWidth : @50, APLImageHeight : @50 };
[APLImageCache setupWithDownloader:nil descriptions:@[coverDescription, photoDescription]];

The best place for this is the method ‘application:didFinishLaunchingWithOptions:’ in the AppDelegate.

Request:

[self.imageView requestImageWithURL:book.coverURL type:@"bookCover" placeholder:placeholder];

Cancel:

[self.imageView cancelImageRequest];

Latest podspec

{
    "name": "APLImageCache",
    "version": "0.0.5",
    "summary": "A simple wrapper for the FastImageCache.",
    "description": "A simple wrapper for the FastImageCache. nn* Easy setupn* Provides UIImageView category for requesting and cancelling.n* Support for custom image downloader classes.",
    "homepage": "https://github.com/apploft/APLImageCache",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mathias Koehnke": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/apploft/APLImageCache.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}",
        "Classes/Private/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "requires_arc": true,
    "dependencies": {
        "FastImageCache": [
            "1.5.1"
        ]
    }
}

Pin It on Pinterest

Share This