typedef NS_ENUM(NSInteger,UIActivityIndicatorViewStyle) {
UIActivityIndicatorViewStyleWhiteLarge,
UIActivityIndicatorViewStyleWhite,
UIActivityIndicatorViewStyleGray,
};
- (instancetype)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style;
@property(nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;
@property(nonatomic) BOOL hidesWhenStopped;
@property (readwrite, nonatomic, retain) UIColor *color NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;
- (void)startAnimating;
- (void)stopAnimating;
- (BOOL)isAnimating;
UIActivityIndicatorView *act =[[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(111, 111, 111, 111)];
[act setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleWhiteLarge];
act.color = [UIColor yellowColor];
[self.view addSubview:act];
[act startAnimating];