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

Algorithms in Java, Part 5

Algorithms in Java, Part 5

Robert Sedgewick / Addison-Wesley Professional / 2003-7-25 / USD 54.99

Algorithms in Java, Third Edition, Part 5: Graph Algorithms is the second book in Sedgewick's thoroughly revised and rewritten series. The first book, Parts 1-4, addresses fundamental algorithms, data......一起来看看 《Algorithms in Java, Part 5》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具