基础控件属性及方法整理 --> UIImageView
来源:互联网 发布:什么是软件过程模型 编辑:程序博客网 时间:2024/06/05 20:59
UIImageView
Image 设置图片,默认显示
UIImageView *_imageView = [[UIImageView alloc]init];_imageView.image = [UIImage imageNamed:@"me.png"];
highlightedImage 设置高亮状态下显示的图片
_imageView.highlightedImage = [UIImage imageNamed:@"other.png"];
animationImages 设置序列帧动画的图片数组
[_imageView setAnimationImages:[NSArray array]];
highlightedAnimationImages 设置高亮状态下序列帧动画的图片数组
[_imageView setHighlightedAnimationImages:[NSArray array]];
animationDuration 设置序列帧动画播放的时常
[_imageView setAnimationDuration:0.3f];
animationRepeatCount 设置序列帧动画播放的次数
[_imageView setAnimationRepeatCount:2];
userInteractionEnabled 设置是否允许用户交互,默认不允许用户交互
[_imageView setUserInteractionEnabled:YES];
highlighted 设置是否为高亮状态,默认为普通状态
_imageView.highlightedImage = [UIImage imageNamed:@"other.png"];[_imageView setHighlighted:YES];
注意
在highlighted状态下设置的图片与序列帧动画要显示,必须同时设置UIImageView的状态为highlighted。
最近才开始往github上放东西 在公司写的又不能放= = 大家姑且看看吧
github地址: https://github.com/FuThD
1 0
- 基础控件属性及方法整理 --> UIImageView
- 基础控件属性及方法整理 --> UIButton
- IOS基本控件常用属性及方法(三)---UIImageView
- UIKit框架-基础控件Swift版本: 4.UIImageView方法/属性详解
- UIImageView 属性 方法
- iiOS 开发基础:UIImageView属性
- C#控件及常用属性整理
- UIImageView的属性与方法
- UIImageView常用属性和方法
- IOS开发UI系列之常用控件 UILabel, UITextField, UIButton, UIImageView等常用属性与方法
- 基础控件使用实例-图片浏览器(UILabel、UIButton、UIImageView及plist)
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介 .
- 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
- UI基础2控件:UILabel,UIImageView
- iOS UI基础控件之UIImageView
- 《基础控件—UIButton、UILable、UIImageView》
- 自建Oauth provider(使用doorkeeper gem)
- Retrofit2.0源码简要解析
- [linux]ubuntu下使用Fillder
- R语言入门总结
- hbase 安装指南
- 基础控件属性及方法整理 --> UIImageView
- 【C++】《C++标准程序库》小结第九章-算法
- 内存使用的管理方式
- POJ 3126 Prime Path(素数打表+BFS)
- 宏定义学习
- quartz集群
- 解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 问题。
- YTU 2481: 01字串
- 杭电2084数塔(逆序)