1
回答
iOS关于三张图片循环淡入淡出能耗问题
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

-(void)starImageViewAnimation

WeakSelf(ws);

[UIView transitionWithView:_starImageViews duration:1.5 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{

_starImageViews.image = ws.starImage2;

} completion:^(BOOL finished) {

[UIView transitionWithView:_starImageViews duration:1.5 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{

_starImageViews.image = ws.starImage3;

} completion:^(BOOL finished) {

[UIView transitionWithView:_starImageViews duration:1.5 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{

_starImageViews.image = ws.starImage1;

} completion:^(BOOL finished) {

[self starImageViewAnimation];

}];

}];


}];

}


使用这个方法可以实现,但是我发现内存的消耗太大

求大神解释或者有别的方法实现

iOS
举报
T_Four
发帖于1年前 1回/313阅
顶部