IOS:.png的动画

IOS:.png的动画,第1张

概述我想为不同版本的png制作动画;然后我有三个版本的这个png …更深的版本,中等深色版本和克莱尔版本.在我的动画中,我想做这种类型的动画 黑暗 – >中等黑暗 – >克莱尔 – >中等黑暗 – >黑暗 – >中等黑暗 – > ….. 可能吗? 听起来你想要动画uiimageview // create the view that will execute our animationUIImage 我想为不同版本的png制作动画;然后我有三个版本的这个png …更深的版本,中等深色版本和克莱尔版本.在我的动画中,我想做这种类型的动画

黑暗 – >中等黑暗 – >克莱尔 – >中等黑暗 – >黑暗 – >中等黑暗 – > …..

可能吗?

解决方法 听起来你想要动画uiimagevIEw

// create the vIEw that will execute our animationUIImageVIEw* campFireVIEw = [[UIImageVIEw alloc] initWithFrame:self.vIEw.frame];// load all the frames of our animationcampFireVIEw.animationImages = [NSArray arrayWithObjects:                                [UIImage imagenamed:@"campFire01.gif"],[UIImage imagenamed:@"campFire02.gif"],[UIImage imagenamed:@"campFire03.gif"],[UIImage imagenamed:@"campFire04.gif"],[UIImage imagenamed:@"campFire05.gif"],[UIImage imagenamed:@"campFire06.gif"],[UIImage imagenamed:@"campFire07.gif"],[UIImage imagenamed:@"campFire08.gif"],[UIImage imagenamed:@"campFire09.gif"],[UIImage imagenamed:@"campFire10.gif"],[UIImage imagenamed:@"campFire11.gif"],[UIImage imagenamed:@"campFire12.gif"],[UIImage imagenamed:@"campFire13.gif"],[UIImage imagenamed:@"campFire14.gif"],[UIImage imagenamed:@"campFire15.gif"],[UIImage imagenamed:@"campFire16.gif"],[UIImage imagenamed:@"campFire17.gif"],nil];// all frames will execute in 1.75 secondscampFireVIEw.animationDuration = 1.75;// repeat the annimation forevercampFireVIEw.animationRepeatCount = 0;// start animating[campFireVIEw startAnimating];// add the animation vIEw to the main window [self.vIEw addSubvIEw:campFireVIEw];

http://appsamuck.com/day2.html

总结

以上是内存溢出为你收集整理的IOS:.png的动画全部内容,希望文章能够帮你解决IOS:.png的动画所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1035192.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存