UIImageView属性

1.Image 设置图片,默认显示
 UIImageView *_imageView = [[UIImageView alloc]init];

_imageView.image = [UIImage imageNamed:@"me.png"];

2.highlightedImage 设置高亮状态下显示的图片
_imageView.highlightedImage = [UIImage imageNamed:@"other.png"];

3.animationImages 设置序列帧动画的图片数组
 [_imageView setAnimationImages:[NSArray array]];
4.highlightedAnimationImages 设置高亮状态下序列帧动画的图片数组
[_imageView setHighlightedAnimationImages:[NSArray array]];

5.animationDuration 设置序列帧动画播放的时常
[_imageView setAnimationDuration:0.3f];
6.animationRepeatCount 设置序列帧动画播放的次数
[_imageView setAnimationRepeatCount:2];
7.userInteractionEnabled 设置是否允许用户交互,默认不允许用户交互
[_imageView setUserInteractionEnabled:YES];

8.highlighted 设置是否为高亮状态,默认为普通状态
_imageView.highlightedImage = [UIImage imageNamed:@"other.png"];
[_imageView setHighlighted:YES];

注意的是在highlighted状态下设置的图片与序列帧动画要显示,必须同时设置UIImageView的状态为highlighted。

最新文章

  1. git版本回退, github版本回退
  2. AADC安装指南
  3. RBAC用户权限管理数据库设计
  4. POJ 3276 Face The Right Way 反转
  5. oracle表分区详解
  6. WCF初探-15:WCF操作协定
  7. 创建一个Table View
  8. 修改linux主机名称
  9. Angularjs中input的指令和属性
  10. 洛谷 P2279 03湖南 消防局的设立
  11. javascript 实现一个网页,然后计算出有多少剩余时间的倒计时程序
  12. [转]iptables
  13. SQL Server数据转MySql
  14. servlet(3):servlet和filter<url-pattern>配置
  15. js中如何在不影响既有事件监听的前提下新增监听器
  16. mybatis源码数据库链接配置
  17. nginx多域名、多证书
  18. 如何添加使用echats地图悬浮显示内容
  19. python-selenium,关于页面滑动的操作
  20. python记录_day14 内置函数二 迭代 二分法

热门文章

  1. 永久删除 tadb.exe
  2. Maven Nexus Setup tutorial
  3. Python中的字典排序
  4. assertThat用法
  5. CentOS 伪装安装TSA for DB2
  6. Oracle 12c
  7. CKEditor4.1和CKFinder2.3.1 for Mvc4最新 破解版,结合 打造"帅"的编辑器 For .Net
  8. fflua更新-增加对引用的支持
  9. 使用BAT批处理执行sql语句的代码
  10. ux.plup.File plupload 集成 ux.plup.FileLis 批量上传预览