iOS9/Swift 2.0 中对 Core Graphics 的更改?

Changes to Core Graphics in iOS9/Swift 2.0?

iOS9 中对 CoreGraphics 框架进行了哪些更改?一些不支持 Swift 2.0 的库显示了这一点 -

Use of unresolved identifier 'kCGPathStroke'

从 Swift 2.0 开始,CoreGraphics 常量变成了枚举。

检查:https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGPath/#//apple_ref/c/tdef/CGPathDrawingMode

所以现在您应该使用:CGPathDrawingMode.Stroke 或只是 .Stroke 而不是 kCGPathStroke