Skip to content

An objective-c (iOS SDK iPhone/iPad/iPod Touch) Library than manage the download and local cache storage of images with an easily extendable objects for special needs. Ideal for avatars or remote images. It automatically keeps the app footprint low and deletes old images to reduce hard drive usage.

Notifications You must be signed in to change notification settings

caiobzen/iOS-ImageManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 1 column 1
---
**Note**
---

This project is provided AS-IF, just download it, and run it to see how it works


What is it?

Basically what it does is provide a mechanism to asynchronously show images (images from a URL for example).

It is easy to use as it is intended to replace UIImageViews with a more "advanced" version and it can be EASYLY done on the Interface Builder or programmatically. Also this UIImageView replacement automatically show/hide a associated view (for the loading UIActivityIndicator or anything else)

The magic is that it has it owns "smart" cache so it you show the same image more than once it doesn't get re-downloaded. Actually is has a 2 level cache, images are stored on RAM and on the DISK.


How to Install

Just Copy the folder "AsyncImage/Classes/Libraries/" with the 6 files on it to your project.

How to use

All you need to know is in AsyncImageView.h and ImageManager.h

A fast tutorial will be:

  1. Go to the XIB where you have the UIImageView
  2. Change the UIImageView class to AsyncImageView
  3. If you like, link the loadingView and the delegate IBOutlet property.
  4. Go to your code and import "AsyncImageView.h"
  5. set the AsyncImageView image to either 'nil' or a placeholder image of your choice (you have to do thi ALWAYS before loading the real image, specially if the image is on a cell because of the cells reutilization)
  6. Finally invoke "loadImageFromURL:" (you can use the alternative method with "force:YES" to always check if a new version of the image is available).
  7. You are done!

Note: If you set a "loadingView" on step 3, that view will show/hide when the AsyncImageView is waiting for a request ;)

Enjoy!

About

An objective-c (iOS SDK iPhone/iPad/iPod Touch) Library than manage the download and local cache storage of images with an easily extendable objects for special needs. Ideal for avatars or remote images. It automatically keeps the app footprint low and deletes old images to reduce hard drive usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published