Giter Site home page Giter Site logo

extkit's Introduction

ExtKit

ExtKit收集了一些平时常用的功能,提供开发效率

##简单介绍

####NSData/NSString


1.AES/DES/3DES 加解密
2.MD5,SHA1,SHA224,SHA256,SHA384,SHA512 签名验证
3.Base64 加解码
4.gzip解压缩
5.URL编解码
6.汉字转拼音

####NSObject

1.给所有得对象添加userInfo_Ext字典属性,便于传值(比如:点击按钮的时候现在不仅可以传tag过去,还可以把一个任意对象放到字典传过去)
2.对象序列换成json

####NSDate

1.间隔几个月、几天的时间
2.间隔几个小时、几分钟的时间
3.判断两个是否是同一天
4.判断两个时间是否在同一周,是否在本周,是否下一周,是否是本月等
5.判断某个时间是否是过去得时间、是否是未来的时间
6.两个时间间隔的天数
....

####UIColor

1.16进制字符串转颜色
2.颜色转16进制字符串
3.获取颜色的RGB值

####UIImage

1.根据颜色生成image
2.从图片中截取图片
3.按比例缩放图片
4.设置图片圆角
5.设置GIF图片,使imageView可播放gif图片
6.得到图片上某点的颜色
7.图片旋转到指定角度

####UIDevice

1.得到屏幕尺寸大小3.5/4/4.7/5.5
2.判断设备是否越狱
3.获得系统的进程
4.创建设备唯一ID保存到keychain中

####UILabel

1.适应字数高度的大小,宽度固定,高度根据字数得到
2.适应字数的宽度的大小,高度不变,宽度根据字数长度

####UIView

1.view截图
2.得到当前view中得第一响应者

####HelperExt

1.生成UUID
2.生成指定位数的随机数字
3.生成随机字符串、数字等

####协议 ExtKit 被许可在 MIT 协议下使用。查阅 LICENSE 文件来获得更多信息。

extkit's People

Contributors

ydj avatar

Stargazers

 avatar AdamWang avatar  avatar LUDY2015 avatar  avatar Mr.Yang avatar  avatar pengpeng avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.