博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
UIImageView动画制作
阅读量:4696 次
发布时间:2019-06-09

本文共 542 字,大约阅读时间需要 1 分钟。

1.先初始化一个UIImageView的视图窗口 如:anima     UIImageView *anima = [UIImageView alloc]initWithFrame(0,0,100,100);2.animationImage 设置一个 UIImageView播放的动态数组      anima.animationImage = imageList();3. animationDuration 设置一组动画需要的时间      anima.animationDuration = 1;(为-1时是一直播放) 4.animationRepeatCount 设置需要播放的次数      anima.animationRepeatCount = 4;5.startAnimating 让动画开始     [anima startAnimating];6.stopAnimating 让动画停止      [anima stopAnimating];7.isAnimating 判断动画是否正在播放      anima.isAnimating = YES;

 

转载于:https://www.cnblogs.com/liYongJun0526/p/4881299.html

你可能感兴趣的文章
RAMPS1.4 3d打印控制板接线与测试1
查看>>
python with语句中的变量有作用域吗?
查看>>
24@Servlet_day03
查看>>
初级ant的学习
查看>>
memcached 细究(三)
查看>>
RSA System.Security.Cryptography.CryptographicException
查看>>
webservice整合spring cxf
查看>>
[解题报告] 100 - The 3n + 1 problem
查看>>
Entity Framework 学习高级篇1—改善EF代码的方法(上)
查看>>
Mybatis逆向工程配置文件详细介绍(转)
查看>>
String类的深入学习与理解
查看>>
不把DB放进容器的理由
查看>>
OnePage收集
查看>>
Java parseInt()方法
查看>>
yahoo的30条优化规则
查看>>
[CCF2015.09]题解
查看>>
[NYIST15]括号匹配(二)(区间dp)
查看>>
json_value.cpp : fatal error C1083: 无法打开编译器生成的文件:No such file or directory
查看>>
洛谷 P1101 单词方阵
查看>>
Swift DispatchQueue
查看>>