//UIActivity
#import "ViewController.h"
@interface ViewController ()
@property (strong,nonatomic) UIActivityIndicatorView *AI;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[super didReceiveMemoryWarning];
self.AI = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
CGRect frame = self.AI.frame;
frame.origin = CGPointMake(200, 100);
self.AI.frame = frame;
self.AI.hidesWhenStopped = false;
[self.view addSubview:self.AI];
self.view.backgroundColor = [UIColor blackColor];
}
- (void)didReceiveMemoryWarning {
}
@end