NSMutableArray *meiArr = [NSMutableArray arrayWithCapacity:4]; for (int i = 0; i < 4; i++) { NSString *imageName = [NSString stringWithFormat:@"001%d" ...
NSMutableArray *meiArr = [NSMutableArray arrayWithCapacity:4];
for (int i = 0; i < 4; i++) {
NSString *imageName = [NSString stringWithFormat:@"001%d",i];
UIImage *image = [UIImage imageNamed:imageName];
[meiArr addObject:image];
}
self.girlImage.animationImages = meiArr;
self.girlImage.animationDuration = 1.5;
self.girlImage.animationRepeatCount = 0;
dispatch_async(dispatch_get_main_queue(),^{
[self.girlImage startAnimating];
});