Latest 1.0.1
License MIT
Platforms ios 6.0, requires ARC


UIButton that displays an activity indicator when disabled.


The demo/ folder contains a demo project showing UIButton+Activity in use. Open and run it.


Import "UIButton+Activity.h". Then, on any button you want to show an activity indicator when disabled, either call

[_button useActivityIndicator:YES];

If your button lives in a storyboard/xib, you can also set the property on it there.

The activity indicator usually works best if you also set up the button to hide its title in the disabled state:

[_button setTitle:@"" forState:UIControlStateDisabled];

Then, to show the activity indicator, just disable the button as normal:

_button.enabled = NO;


This class has been tested back to iOS 6.0.


This class is implemented by hiding and showing a UIActivityIndicator subview when the button’s enabledness changes.


This code is released under the MIT License. See the LICENSE file for details.

Latest podspec

    "name": "UIButton+Activity",
    "version": "1.0.1",
    "summary": "UIButton that displays an activity indicator when disabled.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Josh Justice": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "platforms": {
        "ios": "6.0"
    "requires_arc": true,
    "source_files": [

Pin It on Pinterest

Share This