UIImageVIew属性值animationImages
来源:互联网 发布:烛魔枪一段数据 编辑:程序博客网 时间:2024/04/27 07:03
animationImages是数组类型,改数组必须包含UIImage对象。每张图片可以看成是一帧动画。
NSMutableArray *tempArr = [NSMutableArray arrayWithArray:@[]];
for (int i = 0 ; i < 25; i ++) {
NSString *string = [NSString stringWithFormat:@"cat_angry%d.jpg", i];
UIImage *image = [UIImage imageNamed:string];
[tempArr addObject:image];
}
_imageview.animationImages = tempArr;
_imageview.animationRepeatCount = 0;//设置动画次数 0表示无限
_imageview.animationDuration = 3;//设置动画时间
[_imageview startAnimating];//开始播放动画
效果是一个动态的小猫
0 0
- UIImageVIew属性值animationImages
- ios--UIImageView的属性之animationImages详解
- UIImageView的属性之animationImages详解
- UIImageView的属性之animationImages详解
- iOS开发笔记--UIImageView的属性之animationImages详解
- iOS开发笔记--UIImageView的属性之animationImages详解
- UIImageView的animationImages,不给力啊
- UIImageView的animationImages,不给力啊
- UIImageView的animationImages,不给力啊
- UIImageView 使用animationImages动画展示图片
- animationImages
- UIImageView属性
- UIImageView属性
- UIImageView属性
- UIImageView属性
- UIImageview的contentMode属性
- UIImageView contentMode属性
- UIImageView 的contentMode属性
- Java 往hashSet集合中存入自定义对象
- 图同构(graph isomorphism)和图同态(graph homomorphism)
- Windows平台下GCC编程之从键盘输入10名学生的C语言成绩存入一维数组内,编写程序计算10名学生的最高分、平均分和及格人数
- 多进程并发编程----进程间传递文件描述符基础~socketpair函数简介
- spring mvc @ModelAttribute注解使用
- UIImageVIew属性值animationImages
- 嵌入式 如何手动释放Linux内存的方法
- NestedScrollView中嵌套RecycleView
- js实现继承的5种方式
- 思考
- core模块的初始化
- android apk打包流程
- 结构体二级指针的初始化
- [BZOJ3790] 神奇项链