Latest 1.8.1
Homepage https://github.com/shaojiankui/JKCategories
License MIT
Platforms ios 7.0, requires ARC
Authors

JKCategories(iOS-Categories)

License MIT 
CocoaPods 
CocoaPods 
Support 
Build Status

JKCategories(iOS-Categories), a collection of useful Objective-C Categories extending iOS Frameworks such as Foundation,UIKit,CoreData,QuartzCore,CoreLocation,MapKit Etc.

Requirements

This library requires iOS 7.0+ and Xcode 8.0+.

Installation

Installation with CocoaPods

when you will use the all Categories:

platform :ios
pod 'JKCategories'

when you will use the some one type framework lib,such as Foundation:

platform :ios
pod 'JKCategories/Foundation'

when you will use a more detailed class type lib, in some one type framework lib,such as Foundation's NSDictionary:

platform :ios
pod 'JKCategories/Foundation/NSDictionary'

you will find all sublib with pod search JKCategories or Podfile or in the project folder hierarchy

Manually

Copy JKCategories or some specific class file to your project

Usage

import the header file into any class where you wish to make use of the functionality such as

#import "NSArray+JKSafeAccess.h" or "<JKCategories/NSArray+JKSafeAccess.h>",

Not recommended for import all the header files of JKCategories into pch or baseclass

onekey import all categories of framework

"JKUIKit.h" or "<JKCategories/JKUIKit.h>",
"JKFoundation.h" or "<JKCategories/JKFoundation.h>",
"JKCoreData.h" or "<JKCategories/JKCoreData.h>",
"JKCoreLocation.h" or "<JKCategories/JKCoreLocation.h>",
"JKMapKit.h"  or "<JKCategories/JKMapKit.h>",
"JKQuartzCore.h"  or "<JKCategories/JKQuartzCore.h>""

onekey import all categories of all frameworks

"JKCategories.h" or <JKCategories/JKCategories.h>,

Content

Foundation

  • NSArray
  • NSBundle
  • NSData
  • NSDate
  • NSDateFormatter
  • NSNotificationCenter
  • NSDictionary
  • NSException
  • NSFileManager
  • NSIndexPath
  • NSNumber
  • NSObject
  • NSSet
  • NSString
  • NSTimer
  • NSURL
  • NSUserDefaults
  • NSHTTPCookieStorage
  • NSFileHandle
  • NSRunLoop
  • NSURLRequest
  • NSOperation
  • NSInvocation
  • NSURLConnection
  • NSURLSession

UIKit

  • UIAlertView
  • UIApplication
  • UIBarButtonItem
  • UIBezierPath
  • UIButton
  • UIColor
  • UIFont
  • UIControl
  • UIDevice
  • UIImage
  • UIImageView
  • UILable
  • UINavigationBar
  • UINavigationController
  • UINavigationItem
  • UIResponder
  • UIScreen
  • UIScrollView
  • UISearchBar
  • UISplitViewController
  • UITableView
  • UITableViewCell
  • UITextField
  • UITextView
  • UIView
  • UIViewController
  • UIWebView
  • UIWindow
  • UIPopoverController
  • UICollectionView

QuartzCore

  • CALayer
  • CAMediaTimingFunction
  • CAAnimation
  • CAShapeLayer
  • CATransaction

CoreData

  • NSManagedObjectContext
  • NSFetchRequest
  • NSManagedObject
  • NSPersistentStoreCoordinator

CoreLocation

  • CLLocationManager
  • CLLocation

MapKit

  • MKMapView

License

JKCategories is available under the MIT license.

Latest podspec

{
    "name": "JKCategories",
    "version": "1.8.1",
    "summary": "JKCategories(iOS-Categories), a collection of useful Objective-C Categories extending iOS Frameworks",
    "description": "JKCategories(iOS-Categories), a collection of useful Objective-C Categories extending iOS Frameworks such as Foundation,UIKit,CoreData,QuartzCore,CoreLocation,MapKit Etc.",
    "homepage": "https://github.com/shaojiankui/JKCategories",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "skyfox": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "libraries": "z",
    "source": {
        "git": "https://github.com/shaojiankui/JKCategories.git",
        "tag": "1.8.1"
    },
    "public_header_files": "JKCategories/JKCategories.h",
    "source_files": "JKCategories/JKCategories.h",
    "subspecs": [
        {
            "name": "Foundation",
            "public_header_files": "JKCategories/Foundation/JKFoundation.h",
            "source_files": "JKCategories/Foundation/JKFoundation.h",
            "frameworks": [
                "Foundation",
                "Security"
            ],
            "subspecs": [
                {
                    "name": "NSArray",
                    "source_files": "JKCategories/Foundation/NSArray/*.{h,m}"
                },
                {
                    "name": "NSBundle",
                    "source_files": "JKCategories/Foundation/NSBundle/*.{h,m}"
                },
                {
                    "name": "NSData",
                    "source_files": "JKCategories/Foundation/NSData/*.{h,m}"
                },
                {
                    "name": "NSDate",
                    "source_files": "JKCategories/Foundation/NSDate/*.{h,m}"
                },
                {
                    "name": "NSDateFormatter",
                    "source_files": "JKCategories/Foundation/NSDateFormatter/*.{h,m}"
                },
                {
                    "name": "NSDictionary",
                    "source_files": "JKCategories/Foundation/NSDictionary/*.{h,m}"
                },
                {
                    "name": "NSException",
                    "source_files": "JKCategories/Foundation/NSException/*.{h,m}"
                },
                {
                    "name": "NSFileHandle",
                    "source_files": "JKCategories/Foundation/NSFileHandle/*.{h,m}"
                },
                {
                    "name": "NSFileManager",
                    "source_files": "JKCategories/Foundation/NSFileManager/*.{h,m}"
                },
                {
                    "name": "NSHTTPCookieStorage",
                    "source_files": "JKCategories/Foundation/NSHTTPCookieStorage/*.{h,m}"
                },
                {
                    "name": "NSIndexPath",
                    "source_files": "JKCategories/Foundation/NSIndexPath/*.{h,m}"
                },
                {
                    "name": "NSInvocation",
                    "source_files": "JKCategories/Foundation/NSInvocation/*.{h,m}"
                },
                {
                    "name": "NSNotificationCenter",
                    "source_files": "JKCategories/Foundation/NSNotificationCenter/*.{h,m}"
                },
                {
                    "name": "NSNumber",
                    "source_files": "JKCategories/Foundation/NSNumber/*.{h,m}"
                },
                {
                    "name": "NSObject",
                    "source_files": "JKCategories/Foundation/NSObject/*.{h,m}"
                },
                {
                    "name": "NSRunLoop",
                    "source_files": "JKCategories/Foundation/NSRunLoop/*.{h,m}"
                },
                {
                    "name": "NSSet",
                    "source_files": "JKCategories/Foundation/NSSet/*.{h,m}"
                },
                {
                    "name": "NSString",
                    "source_files": "JKCategories/Foundation/NSString/*.{h,m}",
                    "dependencies": {
                        "JKCategories/Foundation/NSData": []
                    }
                },
                {
                    "name": "NSTimer",
                    "source_files": "JKCategories/Foundation/NSTimer/*.{h,m}"
                },
                {
                    "name": "NSURL",
                    "source_files": "JKCategories/Foundation/NSURL/*.{h,m}"
                },
                {
                    "name": "NSURLConnection",
                    "source_files": "JKCategories/Foundation/NSURLConnection/*.{h,m}"
                },
                {
                    "name": "NSURLRequest",
                    "source_files": "JKCategories/Foundation/NSURLRequest/*.{h,m}"
                },
                {
                    "name": "NSURLSession",
                    "source_files": "JKCategories/Foundation/NSURLSession/*.{h,m}"
                },
                {
                    "name": "NSUserDefaults",
                    "source_files": "JKCategories/Foundation/NSUserDefaults/*.{h,m}"
                }
            ]
        },
        {
            "name": "UIKit",
            "public_header_files": "JKCategories/UIKit/JKUIKit.h",
            "source_files": "JKCategories/UIKit/JKUIKit.h",
            "frameworks": "UIKit",
            "subspecs": [
                {
                    "name": "UIAlertView",
                    "source_files": "JKCategories/UIKit/UIAlertView/*.{h,m}"
                },
                {
                    "name": "UIApplication",
                    "source_files": "JKCategories/UIKit/UIApplication/*.{h,m}"
                },
                {
                    "name": "UIBarButtonItem",
                    "source_files": "JKCategories/UIKit/UIBarButtonItem/*.{h,m}"
                },
                {
                    "name": "UIBezierPath",
                    "source_files": "JKCategories/UIKit/UIBezierPath/*.{h,m}"
                },
                {
                    "name": "UIButton",
                    "source_files": "JKCategories/UIKit/UIButton/*.{h,m}"
                },
                {
                    "name": "UIColor",
                    "source_files": "JKCategories/UIKit/UIColor/*.{h,m}"
                },
                {
                    "name": "UIControl",
                    "source_files": "JKCategories/UIKit/UIControl/*.{h,m}"
                },
                {
                    "name": "UIDevice",
                    "source_files": "JKCategories/UIKit/UIDevice/*.{h,m}"
                },
                {
                    "name": "UIFont",
                    "source_files": "JKCategories/UIKit/UIFont/*.{h,m}"
                },
                {
                    "name": "UIImage",
                    "source_files": "JKCategories/UIKit/UIImage/*.{h,m}"
                },
                {
                    "name": "UIImageView",
                    "source_files": "JKCategories/UIKit/UIImageView/*.{h,m}"
                },
                {
                    "name": "UILable",
                    "source_files": "JKCategories/UIKit/UILable/*.{h,m}"
                },
                {
                    "name": "UINavigationBar",
                    "source_files": "JKCategories/UIKit/UINavigationBar/*.{h,m}"
                },
                {
                    "name": "UINavigationController",
                    "source_files": "JKCategories/UIKit/UINavigationController/*.{h,m}"
                },
                {
                    "name": "UINavigationItem",
                    "source_files": "JKCategories/UIKit/UINavigationItem/*.{h,m}"
                },
                {
                    "name": "UIPopoverController",
                    "source_files": "JKCategories/UIKit/UIPopoverController/*.{h,m}"
                },
                {
                    "name": "UIResponder",
                    "source_files": "JKCategories/UIKit/UIResponder/*.{h,m}"
                },
                {
                    "name": "UIScreen",
                    "source_files": "JKCategories/UIKit/UIScreen/*.{h,m}"
                },
                {
                    "name": "UIScrollView",
                    "source_files": "JKCategories/UIKit/UIScrollView/*.{h,m}"
                },
                {
                    "name": "UISearchBar",
                    "source_files": "JKCategories/UIKit/UISearchBar/*.{h,m}"
                },
                {
                    "name": "UISplitViewController",
                    "source_files": "JKCategories/UIKit/UISplitViewController/*.{h,m}"
                },
                {
                    "name": "UITableView",
                    "source_files": "JKCategories/UIKit/UITableView/*.{h,m}"
                },
                {
                    "name": "UITableViewCell",
                    "source_files": "JKCategories/UIKit/UITableViewCell/*.{h,m}"
                },
                {
                    "name": "UITextField",
                    "source_files": "JKCategories/UIKit/UITextField/*.{h,m}"
                },
                {
                    "name": "UITextView",
                    "source_files": "JKCategories/UIKit/UITextView/*.{h,m}"
                },
                {
                    "name": "UIView",
                    "source_files": "JKCategories/UIKit/UIView/*.{h,m}"
                },
                {
                    "name": "UIViewController",
                    "source_files": "JKCategories/UIKit/UIViewController/*.{h,m}"
                },
                {
                    "name": "UIWebView",
                    "source_files": "JKCategories/UIKit/UIWebView/*.{h,m}",
                    "dependencies": {
                        "JKCategories/UIKit/UIColor": []
                    }
                },
                {
                    "name": "UIWindow",
                    "source_files": "JKCategories/UIKit/UIWindow/*.{h,m}"
                }
            ]
        },
        {
            "name": "QuartzCore",
            "public_header_files": "JKCategories/QuartzCore/JKQuartzCore.h",
            "source_files": "JKCategories/QuartzCore/JKQuartzCore.h",
            "frameworks": [
                "QuartzCore",
                "UIKit"
            ],
            "subspecs": [
                {
                    "name": "CAAnimation",
                    "source_files": "JKCategories/QuartzCore/CAAnimation/*.{h,m}"
                },
                {
                    "name": "CALayer",
                    "source_files": "JKCategories/QuartzCore/CALayer/*.{h,m}"
                },
                {
                    "name": "CAMediaTimingFunction",
                    "source_files": "JKCategories/QuartzCore/CAMediaTimingFunction/*.{h,m}"
                },
                {
                    "name": "CAShapeLayer",
                    "source_files": "JKCategories/QuartzCore/CAShapeLayer/*.{h,m}"
                },
                {
                    "name": "CATransaction",
                    "source_files": "JKCategories/QuartzCore/CATransaction/*.{h,m}"
                }
            ]
        },
        {
            "name": "MapKit",
            "public_header_files": "JKCategories/MapKit/JKMapKit.h",
            "source_files": "JKCategories/MapKit/JKMapKit.h",
            "frameworks": "MapKit",
            "subspecs": [
                {
                    "name": "MKMapView",
                    "source_files": "JKCategories/MapKit/MKMapView/*.{h,m}"
                }
            ]
        },
        {
            "name": "CoreLocation",
            "public_header_files": "JKCategories/CoreLocation/JKCoreLocation.h",
            "source_files": "JKCategories/CoreLocation/JKCoreLocation.h",
            "frameworks": "CoreLocation",
            "subspecs": [
                {
                    "name": "CLLocation",
                    "source_files": "JKCategories/CoreLocation/CLLocation/*.{h,m}"
                }
            ]
        },
        {
            "name": "CoreData",
            "public_header_files": "JKCategories/CoreData/JKCoreData.h",
            "source_files": "JKCategories/CoreData/JKCoreData.h",
            "frameworks": "CoreData",
            "subspecs": [
                {
                    "name": "NSFetchRequest",
                    "source_files": "JKCategories/CoreData/NSFetchRequest/*.{h,m}"
                },
                {
                    "name": "NSManagedObject",
                    "source_files": "JKCategories/CoreData/NSManagedObject/*.{h,m}",
                    "dependencies": {
                        "JKCategories/CoreData/NSManagedObjectContext": []
                    }
                },
                {
                    "name": "NSManagedObjectContext",
                    "source_files": "JKCategories/CoreData/NSManagedObjectContext/*.{h,m}",
                    "dependencies": {
                        "JKCategories/CoreData/NSFetchRequest": []
                    }
                }
            ]
        }
    ]
}

Pin It on Pinterest

Share This