Swift-Useful-Extensions
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/yingogobot/Swift-Useful-Extensions
软件介绍
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
Design for Hackers
David Kadavy / Wiley / 2011-10-18 / USD 39.99
Discover the techniques behind beautiful design?by deconstructing designs to understand them The term ?hacker? has been redefined to consist of anyone who has an insatiable curiosity as to how thin......一起来看看 《Design for Hackers》 这本书的介绍吧!
