JKCategories(iOS-Categories)
JKCategories(iOS-Categories),一个有用的Objective-C类别的集合,扩展了iOS框架,如Foundation、UIKit、CoreData、QuartzCore、CoreLocation、MapKit等。
Requirements
此库需要iOS 7.0+
和Xcode 8.0+
。
Installation
安装椰荚
使用“所有类别”时:
1 | platform :ios |
当您要使用某种类型的框架库时,例如Foundation
:
1 | platform :ios |
当您要使用更详细的类类型库时,在某个单类型框架库中,例如Foundation's NSDictionary
:
1 | platform :ios |
您将找到带有pod search JKCategories
或Podfile
或项目文件夹层次结构中的所有子库
Manually
将JKCategories或某些特定的类文件复制到项目中
Usage
将头文件导入任何希望使用诸如
1 | #import "NSArray+JKSafeAccess.h" or "<JKCategories/NSArray+JKSafeAccess.h>" |
不建议将JKCategories的所有头文件导入pch或baseclass
onekey导入所有类别的框架
1 | "JKUIKit.h" or "<JKCategories/JKUIKit.h>", |
onekey导入所有框架的所有类别
1 | "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