Latest 0.0.1
Homepage https://github.com/GuilhermeMachado/UIActivityLabel
License MIT
Platforms ios 8.0
Authors

An UILabel with UIActivityIndicatorView, useful in asynchronous requests.

UIActivityLabel

Installation with CocoaPods

Podfile iOS 8.0+

platform :ios, '8.0'

pod 'UIActivityLabel'

Manually

Copy UIActivityLabel.h and UIActivityLabel.m to your project folder.

Usage

  • Default Color: Black
  • Default Positon: ActivityPositionCenter

import UIActivityLabel.h


@interface TableViewController ()

@property (strong, nonatomic) IBOutletCollection(UIActivityLabel) NSArray *labelCollection;
@property (weak, nonatomic) IBOutlet UIActivityLabel *label2;
@property (weak, nonatomic) IBOutlet UIActivityLabel *label3;

@end

@implementation TableViewController

-(void)viewDidLoad {

    [super viewDidLoad];

    [self.label2 setActivityViewColor:[UIColor orangeColor]];
    [self.label2 setActivityPosition:ActivityPositionLeft];

    [self.label3 setActivityViewColor:[UIColor greenColor]];

}

Start label


  [self.label2 start];

Start label Collection


  [UIActivityLabel startCollection:self.labelCollection];

Stop label


  [self.label2 stop];

Stop label Collection


  [UIActivityLabel stopCollection:self.labelCollection];

See more in UIActivityLabelDemo

Latest podspec

{
    "name": "UIActivityLabel",
    "version": "0.0.1",
    "summary": "Label with ActivityIndicator",
    "description": ""Custom UILabel with ActivityIndicator"",
    "homepage": "https://github.com/GuilhermeMachado/UIActivityLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Guilherme Machado": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GuilhermeMachado/UIActivityLabel.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "UIActivityLabel",
        "UIActivityLabel/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This