A set of useful categories for Foundation and UIKit.
You can build and install docset use Docset
scheme in Xcode, appledoc
need to be pre-installed.
Or your can read the Documentation online.
- Add
pod "YYCategories"
to your Podfile. - Run
pod install
orpod update
. - Import <YYCategories/YYCategories.h>
- Add
github "ibireme/YYCategories"
to your Cartfile. - Run
carthage update --platform ios
and add the framework to your project. - Import <YYCategories/YYCategories.h>
- Download all the files in the YYCategories subdirectory.
- Add the source files to your Xcode project.
- Add
-fno-objc-arc
compiler flag toNSObject+YYAddForARC.m
andNSThread+YYAdd.m
. - Link with required frameworks:
- UIKit.framework
- CoreGraphics.framework
- QuartzCore.framework
- Accelerate.framework
- ImageIO.framework
- CoreText.framework
- CoreFoundation.framework
- libz
- Import
YYCategories.h
.
This library supports iOS 6.0 and later.
I want to use the APIs as if it was provided by system, so I don't add prefix in these categories. 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.