JKCategories 1.9.3

JKCategories 1.9.3

测试已测试
语言 Obj-CObjective C
许可 MIT
发布上次发布2021年10月

skyfox 维护。



  • by
  • skyfox

JKCategories(iOS-Categories)

License MIT  CocoaPods  CocoaPods  Support  Build Status

JKCategories(iOS-Categories),一组扩展 iOS 框架(如 Foundation、UIKit、CoreData、QuartzCore、CoreLocation、MapKit 等)的实用 Objective-C Categories。

需求

此库需要 iOS 7.0+Xcode 8.0+

安装

CocoaPods安装

当您将使用所有类别时

platform :ios
pod 'JKCategories'

当您将使用单个类型框架库,如Foundation

platform :ios
pod 'JKCategories/Foundation'

当您将使用更详细的类类型库,在某个类型框架库中,如Foundation的NSDictionary

platform :ios
pod 'JKCategories/Foundation/NSDictionary'

您可以通过pod search JKCategories或Podfile或在项目文件夹层次结构中找到所有子库

手动

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

使用方法

将头文件导入任何希望使用该功能的位置的类中,例如

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

不推荐将JKCategories的所有头文件导入pch或基类

一键导入框架的所有类别

"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>""

一键导入所有框架的所有类别

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

内容

基础

  • 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
  • UI校友会
  • UINavigationBar
  • UINavigationController
  • UINavigationItem
  • UIResponders
  • UIScreen
  • UIScrollView
  • UISearchBar
  • UISplitViewController
  • UITableView
  • UITableViewCell
  • UITextField
  • UITextView
  • UIView
  • UIViewController
  • UIWebView
  • UI窗
  • UI弹出控制器
  • UICollectionView

QuartzCore

  • CALayer
  • CAMediaTimingFunction
  • CAAnimation
  • CAShapeLayer
  • CATransaction

CoreData

  • NSManagedObjectContext
  • NSFetchRequest
  • NSManagedObject
  • NSPersistentStoreCoordinator

核心定位

  • CLLocationManager
  • CLLocation

地图框架

  • MKMapView

许可协议

JKCategories依据MIT许可证提供。