- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// create the view that will execute our animation
flameAnimation= [[UIImageView alloc]initWithFrame:self.view.frame];
// load all the frames of our animation
flameAnimation.animationImages= [NSArray arrayWithObjects:
[UIImageimageNamed:@"iFlame 001.jpg"],
[UIImageimageNamed:@"iFlame 002.jpg"],
[UIImageimageNamed:@"iFlame 003.jpg"],
[UIImageimageNamed:@"iFlame 004.jpg"],
[UIImageimageNamed:@"iFlame 005.jpg"],
[UIImageimageNamed:@"iFlame 006.jpg"],
[UIImageimageNamed:@"iFlame 007.jpg"],
[UIImageimageNamed:@"iFlame 008.jpg"],
[UIImageimageNamed:@"iFlame 009.jpg"],
[UIImageimageNamed:@"iFlame 010.jpg"],
[UIImageimageNamed:@"iFlame 009.jpg"],
[UIImageimageNamed:@"iFlame 008.jpg"],
[UIImageimageNamed:@"iFlame 007.jpg"],
[UIImageimageNamed:@"iFlame 006.jpg"],
[UIImageimageNamed:@"iFlame 005.jpg"],
[UIImageimageNamed:@"iFlame 004.jpg"],
[UIImageimageNamed:@"iFlame 003.jpg"],
[UIImageimageNamed:@"iFlame 002.jpg"],nil];
// all frames will execute in 1.75 seconds
flameAnimation.animationDuration= 1.0;
// repeat the annimation forever
flameAnimation.animationRepeatCount= 0;
// start animating
[flameAnimation startAnimating];
// add the animation view to the main window
[self.viewaddSubview:flameAnimation];
pumpkinFace= [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"pumpkinFace.png"]];
[self.viewaddSubview:pumpkinFace];
}} 收藏的用户(0) X
正在加载信息~
推荐阅读
最新回复 (0)
站点信息
- 文章2313
- 用户1336
- 访客11745528
每日一句
Light follows every storm.
风暴后总有光。
风暴后总有光。
jQuery打造漂亮的幻灯片效果
Linux查看进程及相关操作常用命令
解决安卓运行错误Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug
华为:你硬要打压,我偏要强大!
thinkpad t470p装黑苹果系统10.13.2
Android常用的数学函数说明
Android Studio使用DB Browser查看SQLite数据库
使用Putty上传文件?
关于IDEA的Spring boot项目创建慢,Maven插件加载慢,依赖导入慢或者失败的原因及解决方案
imencode和imdecode使用
element-UI组件实现拖拽效果
【教程】手把手教你开通淘小铺赚佣金
Android简单树状实现
新会员