Skip to content

zhangzhongyan/FSOCCategories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSOCCategories

CocoaPods Compatible Platform

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;