【发布时间】:2014-02-25 14:51:02
【问题描述】:
我发现了与带有动画图像的 UIButton 相关的帖子。 但是我没有找到任何解决方案。
这是我的代码。
UIImage *imageOne=[UIImage imageNamed:@"1Ads.png"];
UIImage *imageTwo=[UIImage imageNamed:@"2Ads.png"];
UIImage *imageThree=[UIImage imageNamed:@"3Ads.png"];
NSArray *arr = [[NSArray alloc] initWithObjects:imageOne,imageTwo,imageThree, nil];
self.btnAds.imageView.animationDuration = 7.0;
self.btnAds.imageView.animationImages = arr;
[self.btnAds.imageView startAnimating];
它没有在视图中显示任何内容。
我该怎么做?
【问题讨论】:
-
尝试设置:animationRepeatCount。