版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sndongcheng/article/details/83281332
//
#import "ViewController.h"
@interface ViewController ()
@property (strong,nonatomic) UIProgressView *progressView;
@property (strong,nonatomic) NSTimer *timer;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
CGFloat pw = 200;
CGFloat ph = 50;
CGFloat px = 100;
CGFloat py = 350;
self.progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(px, py, pw, ph)];
[self.view addSubview:self.progressView];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end