美文网首页
iOS UIImageView

iOS UIImageView

作者: NJKNJK | 来源:发表于2021-07-19 16:48 被阅读0次
常用属性
image --- 图片
highlightedImage --- 高亮图片
preferredSymbolConfiguration --- 
userInteractionEnabled --- 可否交互
highlighted --- 是否高亮
animationImages --- 动画图片组
highlightedAnimationImages --- 高亮动画图片组
animationDuration --- 动画时间
animationRepeatCount --- 动画循环次数
animating --- 是否在动画
contentMode --- 填充模式。(UIImageView常用,属于UIView下的属性)
常用方法
//两个初始化方法
- (instancetype)initWithImage:(nullable UIImage *)image;
- (instancetype)initWithImage:(nullable UIImage *)image highlightedImage:(nullable UIImage *)highlightedImage;
//动画启动暂停方法
- (void)startAnimating;
- (void)stopAnimating;
不常用属性
//只能用在TV中,聚焦时使用
adjustsImageWhenAncestorFocused --- 
focusedFrameGuide --- 
overlayContentView --- 
masksFocusEffectToContents --- 

相关文章

网友评论

      本文标题:iOS UIImageView

      本文链接:https://www.haomeiwen.com/subject/siqhmltx.html