UIKit之UIImageView
来源:互联网 发布:淘宝发货地址在哪里填 编辑:程序博客网 时间:2024/06/03 18:06
- (instancetype)initWithImage:(nullable UIImage *)image;
根据图片初始化
- (instancetype)initWithImage:(nullable UIImage *)image highlightedImage:(nullable UIImage *)highlightedImage
根据图片和高亮图片初始化。视图默认显示图片image,在成员变量highlighted设置为YES时,显示高亮图片highlightedImage
@property (nullable, nonatomic, strong) UIImage *image;
设置和获取图片
@property (nullable, nonatomic, strong) UIImage *highlightedImage
设置和获取高亮图片
@property (nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled;
是否响应事件,默认为NO
@property (nonatomic, getter=isHighlighted) BOOL highlighted
是否显示高亮图片,默认为NO
用于动画
@property (nullable, nonatomic, copy) NSArray<UIImage *> *animationImages;
动画图片数组
@property (nullable, nonatomic, copy) NSArray<UIImage *> *highlightedAnimationImages
高亮状态下显示的动画图片数组
@property (nonatomic) NSTimeInterval animationDuration;
动画图片切换时间
@property (nonatomic) NSInteger animationRepeatCount;
动画图片重复次数。当为0时,切换次数无限。默认为0。
- (void)startAnimating;
开始播放动画
- (void)stopAnimating;
停止播放动画
@property(nonatomic, readonly, getter=isAnimating) BOOL animating;
是否在播放动画
@property (null_resettable, nonatomic, strong) UIColor *tintColor
给控件内子视图设置颜色。详细信息请见 UIImage类属性。
@property (nonatomic) BOOL adjustsImageWhenAncestorFocused
@property(readonly,strong) UILayoutGuide *focusedFrameGuide
focusedFrameGuide: 如果设置了adjustsImageWhenAncestorFocused,图像视图可以在一个更大的 frame 中显示其图片的焦点。这个布局指南,可用于将其他元素与图像视图的聚焦帧对齐。
阅读全文
1 0
- UIKit之UIImageView
- UIKit--UIImageView
- UIKit框架 - 03.UIImageView
- iOS 【UIKit-UIImageView 的 contentMode 属性概述】
- UIKit框架-高级控件:6.UIPickerView与UIImageView结合使用
- UIKit框架-高级控件:8.UIPickerView, UILabel, UIImageView结合使用
- UIKit之路
- UIKit之UIScrollView
- UIKit之View
- UIKit之浅析UIButton
- UIKit之UIImage
- UIKit之UIView
- UIKit之UILabel
- UIImageView之userInteractionEnabled 属性
- 解读AFNetworking之UIImageView
- UIImageView 之 contentMode属性
- IOS学习之UIImageView
- Swift 之 UIImageView
- 线性筛素数
- python模块之搜索路径和路径搜索
- JavaScript的部分基本循环
- 找工作笔试面试那些事儿(4)---C++函数高级特征
- SpringMVC入门项目 注解版
- UIKit之UIImageView
- java-SE-1
- Codevs 1036:商务旅行——题解
- 树的孩子表示法,树的兄弟表示法,树的存储结构详解,数据结构-树的学习(2)
- Spark trouble shooting
- 串口裸机程序设计
- ld undefined reference to Sequence question
- tensorflow测试模型时NotFoundError错误解决方法
- 两数组的交