UIImageView的API

- (instancetype)initWithImage:(UIImage *)image;

返回使用指定图像初始化的图像视图。

 

- (instancetype)initWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage;

返回使用指定的常规和突出显示的图像初始化的图像视图。

 

@property(nonatomic, strong) UIImage *image;

图像视图中显示的图像。

 

@property(nonatomic, strong) UIImage *highlightedImage;

突出显示的图像显示在图像视图中。

 

@property(nonatomic, copy) NSArray<UIImage *> *animationImages;

用于动画的image对象数组。

 

@property(nonatomic, copy) NSArray<UIImage *> *highlightedAnimationImages;

突出显示视图时用于动画的image对象数组。

 

@property(nonatomic) NSTimeInterval animationDuration;

经过一个图像循环所需的时间。

 

@property(nonatomic) NSInteger animationRepeatCount;

指定重复动画的次数。

 

- (void)startAnimating;

开始为接收器中的图像设置动画。

 

- (void)stopAnimating;

停止在接收器中设置动画图像。

 

@property(nonatomic, readonly, getter=isAnimating) BOOL animating;

返回一个布尔值,指示动画是否正在运行。

@property(nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled;

一个布尔值,用于确定是否忽略用户事件并从事件队列中删除。

 

@property(nonatomic, getter=isHighlighted) BOOL highlighted;

一个布尔值,用于确定图像是否突出显示。

 

@property(nonatomic, strong) UIColor *tintColor;

用于在视图层次结构中着色模板图像的颜色。

 

@property(nonatomic) BOOL adjustsImageWhenAncestorFocused;

允许在祖先变得专注时做出回应。

 

@property(readonly, strong) UILayoutGuide *focusedFrameGuide;

聚焦图像视图时使用的布局指南。

 

@property(nonatomic) BOOL masksFocusEffectToContents;

一个布尔值,指示浮动聚焦外观是否使用图像的Alpha通道。

 

@property(nonatomic, strong, readonly) UIView *overlayContentView;

用于在图像视图顶部托管分层内容的视图。

posted @ 2019-07-23 22:57  码出境界  阅读(251)  评论(0编辑  收藏  举报