FWImagePickerControllerImpl


@interface FWImagePickerControllerImpl : NSObject <FWImagePickerPlugin>

自定义图片选取插件

  • 单例模式

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) FWImagePickerControllerImpl *_Nonnull sharedInstance;
  • 是否显示相册列表控制器,默认为NO,点击titleView切换相册

    Declaration

    Objective-C

    @property (nonatomic) BOOL showsAlbumController;
  • 自定义相册列表控制器句柄,默认nil时使用自带控制器

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) FWImageAlbumController *_Nonnull (^)(void) albumControllerBlock;
  • 自定义图片预览控制器句柄,默认nil时使用自带控制器

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) FWImagePickerPreviewController *_Nonnull (^)(void) previewControllerBlock;
  • 自定义图片选取控制器句柄,默认nil时使用自带控制器

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) FWImagePickerController *_Nonnull (^)(void) pickerControllerBlock;
  • 自定义图片裁剪控制器句柄,预览控制器未自定义时生效,默认nil时使用自带控制器

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) FWImageCropController *_Nonnull (^)(UIImage *_Nonnull __strong) cropControllerBlock;
  • 图片选取全局自定义句柄,show方法自动调用

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (FWImagePickerController *_Nonnull __strong) customBlock;