NSMutableArray *bflies = [NSMutableArray array];
for (int i = 1; i <= 3; i++) {
[bflies addObject:[UIImage imageWithContentsOfFile:
[[NSBundle mainBundle] pathForResource:
[NSString stringWithFormat:@"OFF%d_bofangluyin_22x22",i] ofType:@"png"]]];
}
self.recordView = [[UIImageView alloc] initWithFrame:CGRectMake(148, 200, 22, 22)];
_recordView.animationImages = bflies;
_recordView.animationDuration = 1.0f; 设置动画时间
[_recordView startAnimating];
[self.view addSubview:self.recordView];
for (int i = 1; i <= 3; i++) {
[bflies addObject:[UIImage imageWithContentsOfFile:
[[NSBundle mainBundle] pathForResource:
[NSString stringWithFormat:@"OFF%d_bofangluyin_22x22",i] ofType:@"png"]]];
}
self.recordView = [[UIImageView alloc] initWithFrame:CGRectMake(148, 200, 22, 22)];
_recordView.animationImages = bflies;
_recordView.animationDuration = 1.0f; 设置动画时间
[_recordView startAnimating];
[self.view addSubview:self.recordView];