An UILabel with UIActivityIndicatorView, useful in asynchronous requests.
platform :ios, '8.0'
pod 'UIActivityLabel'
Copy UIActivityLabel.h and UIActivityLabel.m to your project folder.
- Default Color: Black
- Default Positon: ActivityPositionCenter
@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]];
}
[self.label2 start];
[UIActivityLabel startCollection:self.labelCollection];
[self.label2 stop];
[UIActivityLabel stopCollection:self.labelCollection];
See more in UIActivityLabelDemo