FWImageViewWrapper

@interface FWImageViewWrapper : FWViewWrapper

Undocumented

  • Undocumented

    Declaration

    Objective-C

    FWWrapperCompatible, fw)

FWTheme

  • 设置主题图片,自动跟随系统改变,清空时需置为nil,二选一

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIImage *themeImage;
  • 设置主题图片资源,自动跟随系统改变,清空时需置为nil,二选一

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIImageAsset *themeAsset;

FWImagePlugin

  • 自定义图片插件,未设置时自动从插件池加载

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id<FWImagePlugin> imagePlugin;
  • 当前正在加载的网络图片URL

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSURL *imageURL;
  • 加载网络图片,优先加载插件,默认使用框架网络库

    Declaration

    Objective-C

    - (void)setImageWithURL:(nullable id)url;
  • 加载网络图片,支持占位,优先加载插件,默认使用框架网络库

    Declaration

    Objective-C

    - (void)setImageWithURL:(nullable id)url
           placeholderImage:(nullable UIImage *)placeholderImage;
  • 加载网络图片,支持占位和回调,优先加载插件,默认使用框架网络库

    Declaration

    Objective-C

    - (void)setImageWithURL:(nullable id)url
           placeholderImage:(nullable UIImage *)placeholderImage
                 completion:
                     (nullable void (^)(UIImage *_Nullable __strong,
                                        NSError *_Nullable __strong))completion;
  • 加载网络图片,支持占位、选项、回调和进度,优先加载插件,默认使用框架网络库

    Declaration

    Objective-C

    - (void)
         setImageWithURL:(nullable id)url
        placeholderImage:(nullable UIImage *)placeholderImage
                 options:(FWWebImageOptions)options
                 context:(nullable NSDictionary<FWImageCoderOptions, id> *)context
              completion:(nullable void (^)(UIImage *_Nullable __strong,
                                            NSError *_Nullable __strong))completion
                progress:(nullable void (^)(double))progress;
  • 取消加载网络图片请求

    Declaration

    Objective-C

    - (void)cancelImageRequest;

Mode

  • Undocumented

    Declaration

    Objective-C

    - (void)setContentModeAspectFill UI_APPEARANCE_SELECTOR;
  • Undocumented

    Declaration

    Objective-C

    - (void)setContentMode:(UIViewContentMode)contentMode UI_APPEARANCE_SELECTOR;

Face

  • Undocumented

    Declaration

    Objective-C

    - (void)faceAware;

Reflect

  • Undocumented

    Declaration

    Objective-C

    - (void)reflect;

Watermark

  • Undocumented

    Declaration

    Objective-C

    - (void)setImage:(UIImage *)image watermarkImage:(UIImage *)watermarkImage inRect:(CGRect)rect;
  • Undocumented

    Declaration

    Objective-C

    - (void)setImage:(UIImage *)image watermarkString:(NSAttributedString *)watermarkString inRect:(CGRect)rect;
  • Undocumented

    Declaration

    Objective-C

    - (void)setImage:(UIImage *)image watermarkString:(NSAttributedString *)watermarkString atPoint:(CGPoint)point;