超实用开发加速工具收集,分享给你吧~

2,657 阅读13分钟

汇总整理日常开发常用分类集合

image.png

  • 该库是从之前KJEmitterView当中独立拆解出来使用,后续有相关也会慢慢补充..

  • 觉得有帮助的老哥,请帮忙点个星⭐..

  • 传送门 KJCategories


  • UIButton:图文混排、事件封装、扩大点击域、时间间隔限制、倒计时、点击粒子效果等;
  • UIView:手势封装、半圆角渐变、Xib属性,轻量级布局,动画效果链式封装等;
  • UITextView:输入框扩展、占位符、限制字数、撤销处理、获取文本内部超链接等;
  • UITextField:占位颜色,线条,图文处理,快捷设计密码框等;
  • UILabel:长按复制,富文本,快捷显示文本位置等;
  • UISlider:设计渐变色,点击值响应等;
  • UIImage:截图和裁剪、图片压缩、蒙版处理,图片拼接、图片尺寸处理,滤镜渲染等;
  • UIImage:二维码、条形码生成,动态图播放,水印处理等等;
  • Runtime:列表,方法交换,动态继承等;
  • Foundation:数组和字典防崩处理,数组高级算法处理,谓词相关,加密解密等等;
  • OpenCV:图片处理,霍夫矫正,特征提取,形态学处理,滤镜处理,照片修复等等;

Foundation异常处理崩溃防护 FoggyDemo

目录

Customized 自定义控件

EmitterAnimation 粒子开屏动画效果
功能类型方法 & 函数
初始化方法ClasscreateWithProvider:emitterImage:complete:
重置Instancerestart
GradientSlider 渐变色滑杆设计
功能类型方法 & 函数
渐变色Propertycolors
渐变比例Propertylocations
颜色高度PropertycolorHeight
边框大小PropertyborderWidth
边框颜色PropertyborderColor
当前进度Propertyprogress
重置UIInstanceupdateUI
移动中InstancemovingWithTimeSpan:withBlock:
滑动结束InstancemoveEndBlock:

UIKit

UIView 请点我查看详情
  • UIView+KJFrame 轻量级布局
功能类型方法 & 函数
大小Propertysize
位置Propertyorigin
x坐标Propertyx
y坐标Propertyy
宽度Propertywidth
高度Propertyheight
中心点xPropertycenterX
中心点yPropertycenterY
左边距离Propertyleft
右边距离Propertyright
顶部距离Propertytop
底部距离Propertybottom
x + widthPropertymaxX
y + heightPropertymaxY
  • UIView+KJXib
功能类型方法 & 函数
贝塞尔圆角PropertybezierRadius
阴影偏移量PropertyshadowOffset
阴影透明度PropertyshadowOpacity
阴影的宽度PropertyshadowWidth
阴影的圆角PropertyshadowRadius
阴影颜色PropertyshadowColor
圆角半径PropertycornerRadius
边框宽度PropertyborderWidth
边框颜色PropertyborderColor
图片属性PropertyviewImage
判断是否有子视图在滚动PropertyanySubViewScrolling
判断是否有子视图在滚动Instancekj_anySubViewScrolling
判断控件是否显示在主窗口PropertyshowKeyWindow
判断控件是否显示在主窗口Instancekj_isShowingOnKeyWindow
顶部控制器PropertytopViewController
当前的控制器PropertyviewController
当前的控制器Instancekj_currentViewController
Xib创建的ViewClasskj_viewFromXib
Xib创建的ViewClasskj_viewFromXibWithFrame:
  • UIView+KJRectCorner 进阶版圆角和边框扩展
功能类型方法 & 函数
圆角半径Propertykj_radius
圆角方位Propertykj_rectCorner
边框颜色Propertykj_borderColor
边框宽度Propertykj_borderWidth
边框方位Propertykj_borderOrientation
  • UIView+KJGestureBlock 手势Block
功能类型方法 & 函数
单击手势Instancekj_AddTapGestureRecognizerBlock:
手势处理Instancekj_AddGestureRecognizer:block:
  • UIView+KJAnimation 简单动画效果链式封装
功能类型方法 & 函数
隐式动画Instancekj_animationImplicitDuration:animations:
移动时刻显示阴影效果Instancekj_movingShadow
动画组Instancekj_animationMoreAnimations:
旋转动画效果Instancekj_animationRotateClockwise:makeParameter:
移动动画效果Instancekj_animationMovePoint:makeParameter:
缩放动画效果Instancekj_animationZoomMultiple:makeParameter:
渐隐动画效果Instancekj_animationOpacity:makeParameter:
UIButton
  • UIButton+KJBlock 点击事件ButtonBlock
功能类型方法 & 函数
是否开启时间间隔的方法交换Protocolkj_openTimeExchangeMethod
添加点击事件Instancekj_addAction:
添加事件,不支持多枚举形式Instancekj_addAction:forControlEvents:
点击事件间隔PropertytimeInterval
  • UIButton+KJContentLayout 图文混排(支持XIB显示)
功能类型方法 & 函数
图文样式PropertylayoutType
图文间距Propertypadding
图文边界的间距Propertyperiphery
图文样式Propertykj_ButtonContentLayoutType
图文间距Propertykj_Padding
图文边界的间距Propertykj_PaddingInset
  • UIButton+KJCountDown 倒计时
功能类型方法 & 函数
倒计时结束的回调PropertykButtonCountDownStop
设置倒计时的间隔和倒计时文案Instancekj_startTime:CountDownFormat:
取消倒计时Instancekj_cancelTimer
  • UIButton+KJEmitter 按钮粒子效果
功能类型方法 & 函数
是否开启粒子效果PropertyopenEmitter
粒子PropertyemitterCell
设置粒子效果Instancekj_buttonSetEmitterImage:OpenEmitter:
  • UIButton+KJEnlarge 改变UIButton的响应区域 - 扩大Button点击域
功能类型方法 & 函数
设置按钮额外热区PropertytouchAreaInsets
扩大点击域Instancekj_EnlargeEdgeWithTop:right:bottom:left:
  • UIButton+KJIndicator 指示器(系统自带菊花)
功能类型方法 & 函数
按钮是否正在提交中Propertysubmitting
指示器和文字间隔PropertyindicatorSpace
指示器颜色PropertyindicatorType
开始提交,指示器跟随文字Instancekj_beginSubmitting:
结束提交Instancekj_endSubmitting
显示指示器Instancekj_showIndicator
隐藏指示器Instancekj_hideIndicator
UITextView
  • UITextView+KJBackout 撤销处理,相当于 command + z
功能类型方法 & 函数
是否开启撤销功能PropertykOpenBackout
撤销输入Instancekj_textViewBackout
  • UITextView+KJPlaceHolder
功能类型方法 & 函数
占位符文字PropertyplaceHolder
占位符LabelPropertyplaceHolderLabel
  • UITextView+KJLimitCounter 限制处理
功能类型方法 & 函数
限制字数PropertylimitCount
限制区域右边距PropertylimitMargin
限制区域高度PropertylimitHeight
统计限制字数LabelPropertylimitLabel
UITextField
  • UITextField+KJExtension 输入框扩展,快速设置账号密码框
功能类型方法 & 函数
设置底部边框线条颜色PropertybottomLineColor
占位placeholder颜色PropertyplaceholderColor
占位文字字体大小PropertyplaceholderFontSize
最大长度PropertymaxLength
明文暗文切换PropertysecurePasswords
达到最大字符长度PropertykMaxLengthBolck
文本编辑时刻回调PropertykTextEditingChangedBolck
设置左边视图,类似账号密码标题Instancekj_leftView:
设置右边视图,类似小圆叉Instancekj_rightViewTapBlock:ImageName:Width:Padding:
UITabBar
  • UITabBar+KJBadge 显示小红点
功能类型方法 & 函数
当前的TabBar个数Protocolkj_tabBarCount:
显示小红点Instancekj_showRedBadgeOnItemIndex:
隐藏小红点Instancekj_hideRedBadgeOnItemIndex:
UISlider
  • KJColorSlider 渐变色滑块
功能类型方法 & 函数
颜色数组Propertycolors
每个颜色对应的位置信息Propertylocations
颜色的高度PropertycolorHeight
边框宽度PropertyborderWidth
边框颜色PropertyborderColor
回调处理时间PropertytimeSpan
当前进度,用于外界kvoPropertyprogress
移动回调处理PropertykValueChangeBlock
移动结束回调处理PropertykMoveEndBlock
重新设置UIInstancekj_setUI
  • UISlider+KJTapValue 滑杆点击改值
功能类型方法 & 函数
是否开启滑杆点击修改值PropertykTapValue
UIResponder
  • UIResponder+KJAdapt 简单的屏幕比例适配
功能类型方法 & 函数
设计图机型Protocolkj_adaptModelType:
水平比例适配FunctionKJAdaptScaleLevel
竖直比例适配FunctionKJAdaptScaleVertical
适配CGpointFunctionKJAdaptPointMake
适配CGSizeFunctionKJAdaptSizeMake
适配CGRectFunctionKJAdaptRectMake
适配UIEdgeInsetsFunctionKJAdaptEdgeInsetsMake
UINavigationBar
  • UINavigationBar+KJExtension
功能类型方法 & 函数
设置navigationBar背景颜色Propertykj_BackgroundColor
设置基础的透明度Propertykj_Alpha
重置Instancekj_reset
UILabel
  • UILabel+KJCopy UILabel添加长按复制功能
功能类型方法 & 函数
是否可以拷贝Propertycopyable
移除拷贝长按手势Instancekj_removeCopyLongPressGestureRecognizer
  • UILabel+KJExtension 文本位置和尺寸获取
功能类型方法 & 函数
设置文字内容显示位置PropertycustomTextAlignment
获取宽度Instancekj_calculateWidth
获取高度Instancekj_calculateHeightWithWidth:
获取高度,指定行高Instancekj_calculateHeightWithWidth:OneLineHeight:
  • UILabel+KJAttributedString 富文本
功能类型方法 & 函数
Range之间文字行间距Instancekj_AttributedStringTextLineSpace:
Range之间文字大小Instancekj_AttributedStringTextFont:Range:
Range之间文字颜色Instancekj_AttributedStringTextColor:Range:
Range之间文字大小和颜色Instancekj_AttributedStringTextFont:TextColor:Range:
Range之间文字相关属性Instancekj_AttributedStringTextAttributes:Range:
富文本文字大小Instancekj_AttributedStringTextFont:Loc:Len:
富文本文字颜色Instancekj_AttributedStringTextColor:Loc:Len:
富文本文字大小和颜色Instancekj_AttributedStringTextFont:TextColor:Loc:Len:
富文本文字相关属性Instancekj_AttributedStringTextAttributes:Loc:Len:
UIImageView
  • UIImageView+KJBlur 模糊处理(高斯模糊、Accelerate模糊、毛玻璃、蒙版)
功能类型方法 & 函数
模糊处理Instancekj_blurImageViewWithBlurType:BlurImage:BlurRadius:
  • UIImageView+KJLetters 文字头像,首字母缩略头像
功能类型方法 & 函数
显示文字图片Instancekj_imageViewWithText:LettersInfo:
浏览头像,点击全屏展示Instancekj_headerImageShowScreen
浏览头像,背景颜色Instancekj_headerImageShowScreenWithBackground:
UIImage
  • UIImage+KJQRCode 二维码/条形码生成器,特别备注文字不能是中文汉字
功能类型方法 & 函数
将字符串转成条形码Classkj_barCodeImageWithContent:
生成二维码Classkj_QRCodeImageWithContent:codeImageSize:
生成指定颜色二维码Classkj_QRCodeImageWithContent:codeImageSize:color:
生成条形码Classkj_barcodeImageWithContent:codeImageSize:
生成指定颜色条形码Classkj_barcodeImageWithContent:codeImageSize:color:
改变图片尺寸,bitmap方式Instancekj_bitmapChangeImageSize:
改变图片内部像素颜色Instancekj_changeImagePixelColor:
  • UIImage+KJURLSize 获取网络图片尺寸
功能类型方法 & 函数
获取网络图片尺寸Classkj_imageGetSizeWithURL:
异步等待获取网络图片大小,信号量Classkj_imageAsyncGetSizeWithURL:
  • UIImage+KJScale 图片尺寸处理
功能类型方法 & 函数
通过比例来缩放图片Instancekj_scaleImage:
以固定宽度缩放图像Instancekj_scaleWithFixedWidth:
以固定高度缩放图像Instancekj_scaleWithFixedHeight:
等比改变图片尺寸Instancekj_cropImageWithAnySize:
等比缩小图片尺寸Instancekj_zoomImageWithMaxSize:
不拉升填充图片Instancekj_fitImageWithSize:
  • UIImage+KJPhotoshop
功能类型方法 & 函数
获取图片平均颜色Instancekj_getImageAverageColor
获得灰度图Instancekj_getGrayImage
改变图片透明度Instancekj_changeImageAlpha:
改变图片背景颜色Instancekj_changeImageColor:
修改图片线条颜色Instancekj_imageLinellaeColor:
图层混合Instancekj_imageBlendMode:TineColor:
  • UIImage+KJMask 蒙版处理,图片拼接
功能类型方法 & 函数
文字水印Instancekj_waterText:direction:textColor:font:margin:
图片水印Instancekj_waterImage:direction:waterSize:margin:
图片添加水印Instancekj_waterMark:InRect:
蒙版图片处理Instancekj_maskImage:
圆形图片Instancekj_circleImage
椭圆形图片Instancekj_ellipseImage
图片透明区域点击穿透处理Instancekj_transparentWithPoint:
  • UIImage+KJJoint 图片拼接相关处理
功能类型方法 & 函数
旋转图片和镜像处理Instancekj_rotationImageWithOrientation:
竖直方向拼接随意张图片,固定主图的宽度Instancekj_moreJointVerticalImage:
水平方向拼接随意张图片,固定主图的高度Instancekj_moreJointLevelImage:
图片多次合成处理Instancekj_imageCompoundWithLoopNums:Orientation:
水平方向拼接随意张图片,固定主图的高度Instancekj_moreAccelerateJointLevelImage:
图片拼接艺术Instancekj_jointImageWithJointType:Size:Maxw:
  • UIImage+KJGIF 播放动态图
功能类型方法 & 函数
本地动态图播放Classkj_gifLocalityImageWithName:
本地动图Classkj_gifImageWithData:
网络动图Classkj_gifImageWithURL:
  • UIImage+CoreImage CoreImage框架整理
功能类型方法 & 函数
Photoshop滤镜Instancekj_coreImagePhotoshopWithType:Value:
通用方法Instancekj_coreImageCustomWithName:Dicts:
高光和阴影Instancekj_coreImageHighlightShadowWithHighlightAmount:ShadowAmount:
将图片黑色变透明Instancekj_coreImageBlackMaskToAlpha
马赛克Instancekj_coreImagePixellateWithCenter:Scale:
图片圆形变形Instancekj_coreImageCircularWrapWithCenter:Radius:Angle:
环形透镜畸变Instancekj_coreImageTorusLensDistortionCenter:Radius:Width:Refraction:
空变形Instancekj_coreImageHoleDistortionCenter:Radius:
  • UIImage+KJCompress 图片压缩处理,提供几种系统API的处理方式
功能类型方法 & 函数
压缩图片到指定大小Instancekj_compressTargetByte:
压缩图片到指定大小Classkj_compressImage:TargetByte:
UIKit方式Instancekj_UIKitChangeImageSize:
Quartz 2DInstancekj_QuartzChangeImageSize:
ImageIOInstancekj_ImageIOChangeImageSize:
CoreImageInstancekj_CoreImageChangeImageSize:
AccelerateInstancekj_AccelerateChangeImageSize:
  • UIImage+KJCapture 截图和裁剪处理
功能类型方法 & 函数
当前视图截图Classkj_captureScreen:
指定位置屏幕截图Classkj_captureScreen:Rect:
自定义质量的截图,quality质量倍数Classkj_captureScreen:Rect:Quality:
截取当前屏幕(窗口截图)Classkj_captureScreenWindow
截取当前屏幕(根据手机方向旋转)Classkj_captureScreenWindowForInterfaceOrientation
截取滚动视图的长图Classkj_captureScreenWithScrollView:ContentOffset:
裁剪掉图片周围的透明部分Classkj_cutImageRoundAlphaZero:
不规则图形切图Classkj_anomalyCaptureImageWithView:BezierPath:
多边形切图Classkj_polygonCaptureImageWithImageView:PointArray:
指定区域裁剪Classkj_cutImageWithImage:Frame:
quartz 2d 实现裁剪Classkj_quartzCutImageWithImage:Frame:
图片路径裁剪,裁剪路径 "以外" 部分Classkj_captureOuterImage:BezierPath:Rect:
图片路径裁剪,裁剪路径 "以内" 部分Classkj_captureInnerImage:BezierPath:Rect:
  • UIImage+KJAccelerate Accelerate 框架的图片处理
功能类型方法 & 函数
图片旋转Instancekj_rotateInRadians:
模糊处理Instancekj_blurImageSoft
模糊处理Instancekj_blurImageLight
模糊处理Instancekj_blurImageExtraLight
模糊处理Instancekj_blurImageDark
指定颜色线性模糊Instancekj_blurImageWithTintColor:
线性模糊,保留透明区域Instancekj_linearBlurryImageBlur:
模糊处理Instancekj_blurImageWithRadius:Color:MaskImage:
均衡运算Instancekj_equalizationImage
侵蚀Instancekj_erodeImage
形态膨胀/扩张Instancekj_dilateImage
多倍侵蚀Instancekj_erodeImageWithIterations:
形态多倍膨胀/扩张Instancekj_dilateImageWithIterations:
梯度Instancekj_gradientImageWithIterations:
顶帽运算Instancekj_tophatImageWithIterations:
黑帽运算Instancekj_blackhatImageWithIterations:
卷积处理Instancekj_convolutionImageWithKernel:
锐化Instancekj_sharpenImage
锐化Instancekj_sharpenImageWithIterations:
浮雕Instancekj_embossImage
高斯Instancekj_gaussianImage
边缘检测Instancekj_marginImage
边缘检测Instancekj_edgeDetection
UIDevice
  • UIDevice+KJSystem 系统相关的操作
功能类型方法 & 函数
App版本号ClassappCurrentVersion
App名称ClassappName
手机UUIDClassdeviceID
获取App图标ClassappIcon
判断App是否支持横屏ClasssupportHorizontalScreen
获取启动页图片ClasslaunchImage
系统启动图缓存路径ClasslaunchImageCachePath
启动图备份文件路径ClasslaunchImageBackupPath
生成启动图Classkj_launchImageWithPortrait:Dark:
生成启动图Classkj_launchImageWithStoryboard:Portrait:Dark:
对比版本号Classkj_comparisonVersion:
获取AppStore版本号和详情信息Classkj_getAppStoreVersionWithAppid:Details:
跳转到指定URLClasskj_openURL:
调用AppStoreClasskj_skipToAppStoreWithAppid:
调用自带浏览器safariClasskj_skipToSafari
调用自带MailClasskj_skipToMail
是否切换为扬声器Classkj_changeLoudspeaker:
保存到相册Classkj_savedPhotosAlbumWithImage:Complete:
系统自带分享Classkj_shareActivityWithItems:ViewController:Complete:
切换根视图控制器Classkj_changeRootViewController:Complete:
UIColor
  • UIColor+KJExtension 颜色相关扩展
功能类型方法 & 函数
渐变颜色Classzj_gradientColorWithColors:GradientType:Size:
竖直渐变颜色Instancekj_gradientVerticalToColor:Height:
横向渐变颜色Instancekj_gradientAcrossToColor:Width:
UIColor转16进制字符串Classkj_hexStringFromColor:
16进制字符串转UIColorClasskj_colorWithHexString:
获取图片上指定点的颜色Classkj_colorAtImage:Point:
获取ImageView上指定点的图片颜色Classkj_colorAtImageView:Point:
  • UIColor+KJExtension2 颜色相关扩展
功能类型方法 & 函数
Propertyred
绿Propertygreen
Propertyblue
透明度Propertyalpha
色相Propertyhue
饱和度Propertysaturation
亮度Propertylight
UICollectionView
  • UICollectionView+KJTouch 获取touch事件处理
功能类型方法 & 函数
开启方法交换PropertykOpenExchange
Touch里面移动回调Propertymoveblock

Foundation

NSObject
  • NSObject+KJKVO 键值监听封装,自动释放
功能类型方法 & 函数
kvo监听Instancekj_observeKey:ObserveResultBlock:
  • NSObject+KJRuntime Runtime轻量级封装
功能类型方法 & 函数
获取该对象的所有属性,包含父类PropertypropertyTemps
实例变量列表PropertyivarTemps
方法列表PropertymethodTemps
遵循的协议列表PropertyprotocolTemps
归档封装Instancekj_encodeRuntime:
解档封装Instancekj_initCoderRuntime:
  • NSObject+KJSemaphore 轻量级解耦工具(信号)
功能类型方法 & 函数
发送消息处理Instancekj_sendSemaphoreWithKey:Message:Parameter:
接收消息处理Instancekj_receivedSemaphoreBlock:
代码执行时间处理Classkj_executeTime:
NSDictionary
  • NSDictionary+KJExtension
功能类型方法 & 函数
是否为空PropertyisEmpty
转换为Josn字符串PropertyjsonString
NSString
  • NSString+KJExtension 字符串扩展属性
功能类型方法 & 函数
是否为空PropertyisEmpty
转换为URLPropertyURL
获取图片Propertyimage
取出HTMLPropertyHTMLString
Josn字符串转字典PropertyjsonDict
生成竖直文字PropertyverticalText
  • NSString+KJChinese 汉字相关处理
功能类型方法 & 函数
汉字转拼音PropertypinYin
随机汉字Classkj_randomCreateChinese:
查找数据Instancekj_searchArray:
字母排序Instancekj_letterSortArray:
  • NSString+KJPredicate 谓词工具
功能类型方法 & 函数
过滤空格Instancekj_filterSpace
验证数字Instancekj_validateNumber
是否有特殊字符Instancekj_validateHaveSpecialCharacter
过滤特殊字符Instancekj_removeSpecialCharacter:
验证手机号码Instancekj_validateMobileNumber
验证邮箱格式Instancekj_validateEmail
验证身份证Instancekj_validateIDCardNumber
验证银行卡Instancekj_validateBankCardNumber
  • NSString+KJSecurity 加密解密工具,链式处理
功能类型方法 & 函数
生成keyInstancekj_createKey
生成tokenInstancekj_createToken
RSA公钥加密Instancekj_rsaEncryptPublicKey
RSA公钥解密Instancekj_rsaDecryptPublicKey
RSA私钥加密Instancekj_rsaEncryptPrivateKey
RSA私钥解密Instancekj_rsaDecryptPrivateKey
AES加密Instancekj_aesEncryptKey
AES解密Instancekj_aesDecryptKey
Base64编码Instancekj_base64EncodedString
Base64解码Instancekj_base64DecodingString
NSTimer
  • NSTimer+KJExtension
功能类型方法 & 函数
线程计时器Classkj_timerWithTimeInterval:Repeats:Block:
立刻执行Instancekj_immediatelyTimer
暂停Instancekj_pauseTimer
重启计时器Instancekj_resumeTimer
延时执行Instancekj_resumeTimerAfterTimeInterval:
释放计时器Classkj_invalidateTimer:
NSArray
  • NSArray+KJPredicate 谓词工具
功能类型方法 & 函数
对比两个数组删除相同元素并合并Instancekj_mergeArrayAndDelEqualObjWithOtherArray:
过滤数组Instancekj_filtrationDatasWithPredicateBlock:
除去数组当中包含目标数组的数据Instancekj_delEqualDatasWithTargetTemps:
按照某一属性的升序降序排列Instancekj_sortDescriptorWithKey:Ascending:
按照某些属性的升序降序排列Instancekj_sortDescriptorWithKeys:Ascendings:
取出 key 中匹配 value 的元素Instancekj_takeOutDatasWithKey:Value:
字符串比较运算符Instancekj_takeOutDatasWithOperator:Key:Value:
  • NSArray+KJExtension 对数组里面元素的相关处理
功能类型方法 & 函数
是否为空PropertyisEmpty
筛选数据Instancekj_detectArray:
多维数组筛选数据Instancekj_detectManyDimensionArray:
查找数据Instancekj_searchObject:
映射Instancekj_mapArray:
插入数据到目的位置Instancekj_insertObject:
数组计算交集Instancekj_arrayIntersectionWithOtherArray:
数组计算差集Instancekj_arrayMinusWithOtherArray:
随机打乱数组Instancekj_disorganizeArray
删除数组当中的相同元素Instancekj_delArrayEquelObj
二分查找Instancekj_binarySearchTarget:
冒泡排序Instancekj_bubbleSort
插入排序Instancekj_insertSort
选择排序Instancekj_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 .✌️
这个真的是手都复制粘贴痛了,老板们点个星星鼓励一下 - -

最后

功能介绍就到此完毕,后面有相关再补充,写文章不容易,还请点个小星星传送门