Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


A set of useful categories for Foundation and UIKit.

Subscribe to updates I use YYCategories

Statistics on YYCategories

Number of watchers on Github 649
Number of open issues 21
Average time to close an issue 14 days
Main language Objective-C
Open pull requests 4+
Closed pull requests 3+
Last commit about 2 years ago
Repo Created almost 4 years ago
Repo Last Updated over 1 year ago
Size 204 KB
Organization / Authoribireme
Page Updated
Do you use YYCategories? Leave a review!
View open issues (21)
View YYCategories activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating YYCategories for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


License MIT  Carthage compatible  CocoaPods  CocoaPods  Support  Build Status

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.



  1. Add pod 'YYCategories' to your Podfile.
  2. Run pod install or pod update.
  3. Import <YYCategories/YYCategories.h>.


  1. Add github "ibireme/YYCategories" to your Cartfile.
  2. Run carthage update --platform ios and add the framework to your project.
  3. Import <YYCategories/YYCategories.h>.


  1. Download all the files in the YYCategories subdirectory.
  2. Add the source files to your Xcode project.
  3. Add -fno-objc-arc compiler flag to NSObject+YYAddForARC.m and NSThread+YYAdd.m.
  4. Link with required frameworks:
    • UIKit
    • CoreGraphics
    • QuartzCore
    • Accelerate
    • ImageIO
    • CoreText
    • CoreFoundation
    • libz
  5. Import 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 8.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 problemssuch 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)



  1. Podfile pod 'YYCategories'
  2. pod install pod update
  3. <YYCategories/YYCategories.h>


  1. Cartfile github "ibireme/YYCategories"
  2. carthage update --platform ios framework
  3. <YYCategories/YYCategories.h>
  1. YYCategories
  2. YYCategories ()
  3. NSObject+YYAddForARC.m NSThread+YYAdd.m -fno-objc-arc
  4. frameworks:
    • UIKit
    • CoreGraphics
    • QuartzCore
    • Accelerate
    • ImageIO
    • CoreText
    • CoreFoundation
    • libz
  5. YYCategories.h

============== CocoaDocs API appledoc

============== iOS 6.0 Xcode 8.0

============== API API Category API API Category

============== YYCategories MIT LICENSE

YYCategories open issues Ask a question     (View All Issues)
  • almost 3 years Xcode 8下使用weakify宏时编译出错
  • almost 3 years 你好,我想询问下NSArray分类中的shuffle方法
  • almost 3 years NSData+YYAdd.m的dataWithBase64EncodedString的base64解码
  • almost 3 years 是否@"Watch1,7" : @"Apple Watch Series 1 42mm",错了?
  • almost 3 years "UIBarButtonItem+YYAdd.h"添加了actionBlock不能回调
  • almost 3 years addBlockForControlEvents 内存无法释放
YYCategories open pull requests (View All Pulls)
  • suppress the xcode documentation comments warning
  • Sw/fix
  • Add other models support.
  • add iPhone8/iPhone8Plus/iPhoneX support
YYCategories list of languages used
Other projects in Objective-C