草庐IT

animatedImageNamed

全部标签

ios - UIImage animatedImageNamed 重复计数

我有一个动画图像序列:UIImageView*imgView=[[UIImageViewalloc]initWithFrame:CGRectMake(0,0,self.view.frame.size.width,120)];[UIImageanimatedImageNamed:@"spinner-"duration:1.0f];imgView.contentMode=UIViewContentModeCenter;imgView.animationRepeatCount=1;//Noeffect[self.viewaddSubView:imgView];但是序列一直在循环。有没有办法控