iOS 工具分类整理
功能强大的iOS开发分类
主要包括一下内容:
libextobjc currently includes the following features:
@weakify
, @unsafeify
, and @strongify
from the EXTScope module.@onExit
in the EXTScope module, for automatically cleaning up manually-allocated memory, file handles, locks, etc., at the end of a scope.NSNull
, but behaves much more closely to actual nil
(i.e., doesn't crash when sent unrecognized messages).<objc/runtime.h>
, including extremely customizable method injection, reflection upon object properties, and various functions to extend class hierarchy checks and method lookups.所有的分类独立,可以按照需求进行导入
如果想要全部导入只需要将Classes
中文件拉入项目中即可
使用全部功能
pod 'SICategory', '~> 1.0'
只使用UIKit
相关分类
pod 'SICategory/SIUIKit', '~> 1.0'
只使用Foundation
相关分类
pod 'SICategory/SIFoundation', '~> 1.0'
只使用EXTObj
pod 'SICategory/EXTObj', '~> 1.0'
只使用Manager
pod 'SICategory/Manager', '~> 1.0'
只使用SIMacros
pod 'SICategory/SIMacros', '~> 1.0'
导入头文件:
使用全部:
#import "SICategory.h"
使用Foundation
部分:
#import "SIFoundation.h"
使用UIKit
部分
#import "SIUIKit.h"
使用EXTObjc
部分:
#import "EXTObjc.h"
使用SIManager
部分
#import "SIManager.h"
使用SIMacros
部分:
#import "SIMacros.h"
iOS-Category is available under the MIT license. See the LICENSE file for more info.