SkillAgentSearch skills...

UIActivityLabel

Label with ActivityIndicator

Install / Use

/learn @GuilhermeMachado/UIActivityLabel
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UIActivityLabel

An UILabel with UIActivityIndicatorView, useful in asynchronous requests.

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

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated6y ago
Forks3

Languages

Objective-C

Security Score

75/100

Audited on Aug 22, 2019

No findings