CocoaPods开源库制作方案: demo - NITools(包你会做自己开源、私有库)

216 阅读1分钟

image.png image.png

NITools

image.png

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

效果

image.png

image.png

目录结构

/Users/nixs/Documents/iOSDemo/NITools/NITools
nixs@nixs-iMac NITools % tree
.
├── Assets
└── Classes
    ├── NICategory(UIView 扩展分类-注意和Masnory一起引入工程时候,不要用Masnory宏定义)
       ├── UIView+NIFrame.h
       └── UIView+NIFrame.m
    └── NIView(自定义View)
        ├── NIPrivacyView.h(app启动隐私说明)
        ├── NIPrivacyView.m
        ├── NIVersionManagerView.h(版本更新描述)
        └── NIVersionManagerView.m

4 directories, 6 files
nixs@nixs-iMac NITools %

使用示例

  • 参见./Example/NITools/NIViewController.m

版本更新内容

  • tag:0.1.2 - NITools:优化NIPrivacyView.h/m(开放尽可能多的属性-方便使用者精细定制化)-「个人实践:pod lib编译验证不过、pod trunk push上传异常、 trunk push 到 CocoaPods 成功后 pod search 却搜不到的解决方法」
  • tag:0.1.0 - NITools:自定义view分类(UIView+NIFrame.h/m)、启动隐私政策自定义view组件(NIPrivacyView.h/m)、版本更新自定义view组件(NIVersionManagerView.h/m)

Requirements

  • iOS 8.0 or later

Installation

NITools is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NITools', '~> 0.1.2'

Author

nixinsheng, 1911398892@qq.com

有问题微信联系包教会「注明来意」-本人微信号:wvqusrtg

License

NITools is available under the MIT license. See the LICENSE file for more info.

NITools