OjectIve-c分类,功能拓展库
- 下载Zip包 将FSOCCategories文件夹内源码copy到项目集成
- 通过Pod进行安装:
pod 'FSOCCategories'
pod 'FSOCCategories/UIButton+FSHitEdgeInsets'
pod 'FSOCCategories/UIButton+FSDocumentPickerViewController'
pod 'FSOCCategories/UIButton+FSDocumentInteractionController'
-
UIButton+FSHitEdgeInsets
- /// 传入负值可以扩大点击区域
@property (nonatomic, assign) UIEdgeInsets hitEdgeInsets;:
-
UIViewController+FSDocumentPickerViewController
- /// 系统文件选择控制器
- @property (nonatomic, strong, readonly) UIDocumentPickerViewController *documentPickerVC;
- /** 选择文件回调 */
- @property (nonatomic, strong, nullable) FSDocumentPickerDidSelectedBlock documentPickerDidSelectedBlock;
- /// 取消回调
- @property (nonatomic, strong, nullable) FSDocumentPickerDidCancelBlock documentPickerDidCancelBlock;
-
UIViewController+FSDocumentInteractionController
- /// 弹出系统文件交互弹唱(分享、保存、应用间文件通讯)
- (void)presentDocumentInteractionControllerWithURL:(NSURL *)url;