1
回答
iOS关于三张图片循环淡入淡出能耗问题
终于搞明白,存储TCO原来是这样算的>>>   

-(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回/312阅
顶部