UIActivityIndicatorView活动指示器

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sndongcheng/article/details/83280988
//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

猜你喜欢

转载自blog.csdn.net/sndongcheng/article/details/83280988