0%

JKCategories

JKCategories(iOS-Categories)

JKCategories(iOS-Categories),一个有用的Objective-C类别的集合,扩展了iOS框架,如Foundation、UIKit、CoreData、QuartzCore、CoreLocation、MapKit等。

Requirements

此库需要iOS 7.0+Xcode 8.0+

Installation

安装椰荚

使用“所有类别”时:

1
2
platform :ios
pod 'JKCategories'

当您要使用某种类型的框架库时,例如Foundation

1
2
platform :ios
pod 'JKCategories/Foundation'

当您要使用更详细的类类型库时,在某个单类型框架库中,例如Foundation's NSDictionary

1
2
platform :ios
pod 'JKCategories/Foundation/NSDictionary'

您将找到带有pod search JKCategoriesPodfile或项目文件夹层次结构中的所有子库

Manually

将JKCategories或某些特定的类文件复制到项目中

Usage

将头文件导入任何希望使用诸如

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

不建议将JKCategories的所有头文件导入pch或baseclass

onekey导入所有类别的框架

1
2
3
4
5
6
"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导入所有框架的所有类别

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

-------------本文结束感谢您的阅读-------------