Swift-Useful-Extensions

码农软件 · 软件分类 · 其他(Others) · 2019-07-23 22:14:53

软件介绍

Swift-Useful-Extensions 是使用 Swift 重写许多的有用的 Objective-C 类集合。

Int 扩展

isEven:Bool 
isOdd:Bool 
isPositive:Bool 
isNegative:Bool 
toDouble:Double
toFloat:Float
digits:Int

Double 扩展

roundToDecimalDigits(decimals:Int) -> Double

String 扩展

length:Int
containsString(s:String) -> Bool
containsString(s:String, compareOption: NSStringCompareOptions) -> Bool
reverse() -> String

UIView

width:CGFloat
height:CGFloat
size:CGSize

origin:CGPoint
x:CGFloat
y:CGFloat
centerX:CGFloat
centerY:CGFloat

left:CGFloat
right:CGFloat
top:CGFloat
bottom:CGFloat

setX(x:CGFloat)
setY(y:CGFloat) 
setCenterX(x:CGFloat)
setCenterY(y:CGFloat)
roundCorner(radius:Float)

NSDate

daysInBetweenDate(date: NSDate) -> Double
hoursInBetweenDate(date: NSDate) -> Double
minutesInBetweenDate(date: NSDate) -> Double
secondsInBetweenDate(date: NSDate) -> Double

UIImageView

roundImage()

UIImage

croppedImage(bound : CGRect) -> UIImage


本文地址:https://codercto.com/soft/d/10797.html

从颠覆到创新

从颠覆到创新

长江商学院 / 中国友谊出版公司 / 49.00

互联网+时代的汹涌来临,一切我们所熟知的事物都在发生改变,商业模式的剧烈变化正在席卷各行各业,所有坚硬的壁垒都将消散,所有的企业都面临着商业模式的再探索和转型,而商业模式的探索、失败、进化,甚而再回到起点,杀死自己推倒重来,不断颠覆不断创新,不断涅槃不断重生,这不仅仅是这个时代新创公司的特征,也是今天互联网领域所有存活下来的巨头们的轨迹。 本书通过11个典型的互联网企业商业模式转型案例,讲述......一起来看看 《从颠覆到创新》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码