UIImageView属性---iOS-Apple苹果官方文档翻译
2013-12-28 22:52
597 查看
本系列所有开发文档翻译链接地址:iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址
//转载请注明出处--本文永久链接:/article/7091882.html
技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong
UIImageView属性.docx
223.7 KB
UIImageView属性.pdf
123.1 KB
UIImageView属性
技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong
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。
//转载请注明出处--本文永久链接:/article/7091882.html
本文对应pdf文档下载链接,猛戳—>:https://www.evernote.com/shard/s227/sh/eb34a2a7-5561-42bd-9081-36a1a1522d0a/eecbf3b61faa8f3c95f930a02dba5129
本系列所有开发文档翻译链接地址:iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址
//转载请注明出处--本文永久链接:/article/7091882.html
技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong
UIImageView属性.docx
223.7 KB
UIImageView属性.pdf
123.1 KB
UIImageView属性
技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong
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。
//转载请注明出处--本文永久链接:/article/7091882.html
本文对应pdf文档下载链接,猛戳—>:https://www.evernote.com/shard/s227/sh/eb34a2a7-5561-42bd-9081-36a1a1522d0a/eecbf3b61faa8f3c95f930a02dba5129
本系列所有开发文档翻译链接地址:iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址
相关文章推荐
- UIPikerView的属性---iOS-Apple苹果官方文档翻译
- UIScrollView---iOS-Apple苹果官方文档翻译
- 基本控件文档-UILabel属性---iOS-Apple苹果官方文档翻译
- UIImagePickerController---iOS-Apple苹果官方文档翻译
- 基本控件文档-UISegment属性----iOS-Apple苹果官方文档翻译
- 基本控件文档-UISlider属性---iOS-Apple苹果官方文档翻译
- 基本控件文档-UISwitch属性---iOS-Apple苹果官方文档翻译
- UIScrollView---iOS-Apple苹果官方文档翻译
- UIActivityIndicatorView---iOS-Apple苹果官方文档翻译
- 基本控件文档-UITextField属性---iOS-Apple苹果官方文档翻译
- UIAlertView---iOS-Apple苹果官方文档翻译
- UITableView---iOS-Apple苹果官方文档翻译
- 基本控件文档-UIView属性---iOS-Apple苹果官方文档翻译
- 基本控件文档-UIButton属性---iOS-Apple苹果官方文档翻译
- 基本控件文档-UIKit结构图---iOS-Apple苹果官方文档翻译
- 苹果API常用英语名词---iOS-Apple苹果官方文档翻译
- CALayer---iOS-Apple苹果官方文档翻译之CALayer
- UIDatePicker---iOS-Apple苹果官方文档翻译
- XML & JSON---iOS-Apple苹果官方文档翻译
- UIPageControl---iOS-Apple苹果官方文档翻译