Latest 1.0.1
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit


UIImageView+ALActivityIndicatorView is a simple category to show a "loading" indicator on an image view.

This library was originally part of AutoLayoutCells. However, it’s pretty useful by itself, so it’s been pulled into a separate library.

Installation With CocoaPods

The easiest way to add UIImageView+ALActivityIndicatorView to your project is using CocoaPods. Simply add the following line to your Podfile:

pod 'UIImageView+ALActivityIndicatorView', '~> 1.0'

Then run pod install as you normally would.

New to CocoaPods? Check out this tutorial, and you’ll be setup in no time.

Manual Installation

Alternatively, you can manually include UIImageView+ALActivityIndicatorView in your project by doing the following:

1) Clone this repo locally onto your computer or press Download ZIP to simply download the latest master commit.

2) Drag the UIImageView+ALActivityIndicatorView folder into your app project, making sure Copy items into destination group's folder (if needed) is checked.

How to Use

To show a loading indicator

UIImageView *imageView = //... a reference to your image view
[imageView AL_addActivityIndicatorViewWithStyle:UIActivityIndicatorViewStyleGray];

To later hide said indicator:

[imageView AL_removeActivityIndicatorView];

You can also get a reference to the loading indicator, after it has been added:

UIActivityIndicatorView *indicator = [imageView AL_activityIndicatorView];
// customize the indicator, love the indicator, whatever... ;P

Recommended Use

This library is most useful as a "component library" to help fulfill some larger functionality that happens in your app. For example, AutoLayoutCells uses this category to show a loading indicator while an image is being downloaded on a background thread (see UIImageView+ALImageWithURL category for more details).


UIImageView+ALActivityIndicatorView is available under the MIT license (see the LICENSE file for more details).

Latest podspec

    "name": "UIImageView+ALActivityIndicatorView",
    "platforms": {
        "ios": "6.0"
    "version": "1.0.1",
    "summary": "UIImageView+ALActivityIndicatorView adds convenience methods for showing an activity indicator on an image view.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Joshua Greene": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "frameworks": "UIKit",
    "requires_arc": true,
    "source_files": "UIImageView+ALActivityIndicatorView/*.{h,m}"

Pin It on Pinterest

Share This