HF_Q 727edce93c create | 4 yıl önce | |
---|---|---|
.. | ||
YYCategories | 4 yıl önce | |
LICENSE | 4 yıl önce | |
README.md | 4 yıl önce |
A set of useful categories for Foundation and UIKit.
(It's a component of YYKit)
You can build and install docset use Docset
scheme in Xcode, appledoc
need to be pre-installed.
Or your can read the Documentation online.
pod 'YYCategories'
to your Podfile.pod install
or pod update
.github "ibireme/YYCategories"
to your Cartfile.carthage update --platform ios
and add the framework to your project.-fno-objc-arc
compiler flag to NSObject+YYAddForARC.m
and NSThread+YYAdd.m
.YYCategories.h
.Full API documentation is available on CocoaDocs.
You can also install documentation locally using appledoc.
This library requires iOS 6.0+
and Xcode 7.0+
.
I want to use the APIs as if it was provided by system, so I don't add prefix in these categories. This may cause some potential problems(such as conflict with other libraries), so if you just need some pieces of code in this project, pick them out and don't import the whole library.
YYCategories is provided under the MIT license. See LICENSE file for details.
功能丰富的 Category 类型工具库。
(该项目是 YYKit 组件之一)
你可以用 Docset
scheme 来生成文档 (需要预先安装 appledoc),或者在线查看。
pod 'YYCategories'
。pod install
或 pod update
。github "ibireme/YYCategories"
。carthage update --platform ios
并将生成的 framework 添加到你的工程。NSObject+YYAddForARC.m
和 NSThread+YYAdd.m
添加编译参数 -fno-objc-arc
。YYCategories.h
。你可以在 CocoaDocs 查看在线 API 文档,也可以用 appledoc 本地生成文档。
该项目最低支持 iOS 6.0
和 Xcode 7.0
。
我希望调用 API 时,有着和调用系统自带 API 一样的体验,所以我并没有为 Category 方法添加前缀。我已经用工具扫描过这个项目中的 API,确保没有对系统 API 产生影响。我知道没有前缀的 Category 可能会带来麻烦(比如可能和其他某些类库产生冲突),所以如果你只需要其中少量代码,那最好将那段代码取出来,而不是导入整个库。
YYCategories 使用 MIT 许可证,详情见 LICENSE 文件。