UICollectionView
UICollectionView+KJTouch 获取touch事件处理
| 功能 | 类型 | 方法 & 函数 |
| 开启方法交换 | Property | kOpenExchange |
| Touch里面移动回调 | Property | moveblock |
Foundation
NSObject
NSObject+KJKVO 键值监听封装,自动释放
| 功能 | 类型 | 方法 & 函数 |
| kvo监听 | Instance | kj_observeKey:ObserveResultBlock: |
NSObject+KJRuntime Runtime轻量级封装
| 功能 | 类型 | 方法 & 函数 |
| 获取该对象的所有属性,包含父类 | Property | propertyTemps |
| 实例变量列表 | Property | ivarTemps |
| 方法列表 | Property | methodTemps |
| 遵循的协议列表 | Property | protocolTemps |
| 归档封装 | Instance | kj_encodeRuntime: |
| 解档封装 | Instance | kj_initCoderRuntime: |
NSObject+KJSemaphore 轻量级解耦工具(信号)
| 功能 | 类型 | 方法 & 函数 |
| 发送消息处理 | Instance | kj_sendSemaphoreWithKey:Message:Parameter: |
| 接收消息处理 | Instance | kj_receivedSemaphoreBlock: |
| 代码执行时间处理 | Class | kj_executeTime: |
NSDictionary
NSDictionary+KJExtension
| 功能 | 类型 | 方法 & 函数 |
| 是否为空 | Property | isEmpty |
| 转换为Josn字符串 | Property | jsonString |
NSString
NSString+KJExtension 字符串扩展属性
| 功能 | 类型 | 方法 & 函数 |
| 是否为空 | Property | isEmpty |
| 转换为URL | Property | URL |
| 获取图片 | Property | image |
| 取出HTML | Property | HTMLString |
| Josn字符串转字典 | Property | jsonDict |
| 生成竖直文字 | Property | verticalText |
NSString+KJChinese 汉字相关处理
| 功能 | 类型 | 方法 & 函数 |
| 汉字转拼音 | Property | pinYin |
| 随机汉字 | Class | kj_randomCreateChinese: |
| 查找数据 | Instance | kj_searchArray: |
| 字母排序 | Instance | kj_letterSortArray: |
NSString+KJPredicate 谓词工具
| 功能 | 类型 | 方法 & 函数 |
| 过滤空格 | Instance | kj_filterSpace |
| 验证数字 | Instance | kj_validateNumber |
| 是否有特殊字符 | Instance | kj_validateHaveSpecialCharacter |
| 过滤特殊字符 | Instance | kj_removeSpecialCharacter: |
| 验证手机号码 | Instance | kj_validateMobileNumber |
| 验证邮箱格式 | Instance | kj_validateEmail |
| 验证身份证 | Instance | kj_validateIDCardNumber |
| 验证银行卡 | Instance | kj_validateBankCardNumber |
NSString+KJSecurity 加密解密工具,链式处理
| 功能 | 类型 | 方法 & 函数 |
| 生成key | Instance | kj_createKey |
| 生成token | Instance | kj_createToken |
| RSA公钥加密 | Instance | kj_rsaEncryptPublicKey |
| RSA公钥解密 | Instance | kj_rsaDecryptPublicKey |
| RSA私钥加密 | Instance | kj_rsaEncryptPrivateKey |
| RSA私钥解密 | Instance | kj_rsaDecryptPrivateKey |
| AES加密 | Instance | kj_aesEncryptKey |
| AES解密 | Instance | kj_aesDecryptKey |
| Base64编码 | Instance | kj_base64EncodedString |
| Base64解码 | Instance | kj_base64DecodingString |
NSTimer
NSTimer+KJExtension
| 功能 | 类型 | 方法 & 函数 |
| 线程计时器 | Class | kj_timerWithTimeInterval:Repeats:Block: |
| 立刻执行 | Instance | kj_immediatelyTimer |
| 暂停 | Instance | kj_pauseTimer |
| 重启计时器 | Instance | kj_resumeTimer |
| 延时执行 | Instance | kj_resumeTimerAfterTimeInterval: |
| 释放计时器 | Class | kj_invalidateTimer: |
NSArray
NSArray+KJPredicate 谓词工具
| 功能 | 类型 | 方法 & 函数 |
| 对比两个数组删除相同元素并合并 | Instance | kj_mergeArrayAndDelEqualObjWithOtherArray: |
| 过滤数组 | Instance | kj_filtrationDatasWithPredicateBlock: |
| 除去数组当中包含目标数组的数据 | Instance | kj_delEqualDatasWithTargetTemps: |
| 按照某一属性的升序降序排列 | Instance | kj_sortDescriptorWithKey:Ascending: |
| 按照某些属性的升序降序排列 | Instance | kj_sortDescriptorWithKeys:Ascendings: |
| 取出 key 中匹配 value 的元素 | Instance | kj_takeOutDatasWithKey:Value: |
| 字符串比较运算符 | Instance | kj_takeOutDatasWithOperator:Key:Value: |
NSArray+KJExtension 对数组里面元素的相关处理
| 功能 | 类型 | 方法 & 函数 |
| 是否为空 | Property | isEmpty |
| 筛选数据 | Instance | kj_detectArray: |
| 多维数组筛选数据 | Instance | kj_detectManyDimensionArray: |
| 查找数据 | Instance | kj_searchObject: |
| 映射 | Instance | kj_mapArray: |
| 插入数据到目的位置 | Instance | kj_insertObject: |
| 数组计算交集 | Instance | kj_arrayIntersectionWithOtherArray: |
| 数组计算差集 | Instance | kj_arrayMinusWithOtherArray: |
| 随机打乱数组 | Instance | kj_disorganizeArray |
| 删除数组当中的相同元素 | Instance | kj_delArrayEquelObj |
| 二分查找 | Instance | kj_binarySearchTarget: |
| 冒泡排序 | Instance | kj_bubbleSort |
| 插入排序 | Instance | kj_insertSort |
| 选择排序 | Instance | kj_selectionSort |
真太多,这边目前就只列举小部分,其他的请查看 KJCategories
类型说明
Property:属性
Class & Property:类属性
Protocol:协议
Instance:实例方法
Class:类方法
Function:函数
CocoaPods Install
考虑到东西太多,很多可能不会使用到,所以我这边基本已做好分类,您需要什么就导入什么即可~
导入核心模块: - pod 'KJCategories' 导入UIKit当中贝塞尔模块: - pod 'KJCategories/KitExtension/UIBezierPath' 导入Foundation当中数组模块: - pod 'KJCategories/Foundation/NSArray' 导入自定义控件模块: - pod 'KJCategories/Customized/GradientSlider' 复制代码
OpenCV模块
关于OpenCV模块已单独抽离出去,可选择导入**pod 'OpencvQueen'**
传送链接 OpencvDemo .✌️
这个真的是手都复制粘贴痛了,老板们点个星星鼓励一下 - -
最后
功能介绍就到此完毕,后面有相关再补充,写文章不容易,还请点个小星星传送门


