JSExtension 0.0.6

JSExtension 0.0.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2017

Maintained by ShenYj.



  • By
  • Ryan

JSExtension

  • 项目开发中的工具ShenYj

iOS 8.0 +

支持pod

Podfile

To integrate JSExtension into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'JSExtension'
end

Then, run the following command:

$ pod install

And then import the header file in your target:

#import <JSUIkitExtension.h>

包含内容

  • NSObject+JSObjc.h --> 运行时取得类的属性列表
  • NSArray+JSLog.h --> 控制台打印中文
  • NSString+Hash.h --> MD5相关
  • NSString+JSExtension.h --> 汉字转印标相关
  • UIImage+JSExtension.h --> 图片处理相关 
  • UINavigationController+JSFullScreenPopGesture.h --> 运行时全屏返回手势
  • UIView+JSFrame.h -->  添加Frame的:x,y,width,height属性
  • UIColor+JSExtension.h --> RGB颜色、随机色以及十六进制设置颜色
  • NSString+JSFileSize.h-->获取文件或文件夹总大小(新增)

默认未导入的类:

  • JSTextLabel.h --> 超链接处理
  • JSDateFormatter.h --> 单例类 
  • NSString+Emoji.h --> Emoji相关
  • NSDate+JSIsThisYear.h --> NSDate扩展:将NSDate类型对象转换为特定格式的字符串、判断date是否是今年