• 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;

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

  • 相关阅读:
    记一次Cloudera中页面监控失效问题
    spark on yarn 动态资源分配报错的解决:org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException: The auxService:spark_shuffle does not exist
    sparkOnYarn报错org.apache.hadoop.fs.FSDataInputStream
    记一次newApiHadoopRdd查询数据不一致问题
    记一次sparkOnyarn错误:java.lang.UnsatisfiedLinkError
    线程八大基础核心二(启动线程)
    线程八大基础核心一(创建线程的方式)
    非常时期,做好一个普通人
    哈希算法(应用场景)
    查找算法(二分查找)
  • 原文地址:https://www.cnblogs.com/cchHers/p/11245353.html
Copyright © 2020-2023  润新知