没有,不相容的cgaffinetransform

时间:2017-01-06 20:20:24

标签: ios iphone swift swift3

我得到一个Nil与预期的参数类型不兼容' unsafePointer'此enter image description here

的错误
let centerX = bounds.midX
    let centerY = bounds.midY

    let outerRadius = outerRadiusInRect(rect: bounds)
    let innerRadius = outerRadius - GNTickerButton.kOutterInnerRingSpacing

    let path = CGMutablePath()
    let padding = 8 as CGFloat

    CGPathAddArc(path, nil, centerX, centerY, GNTickerButton.kTearDropRadius,  CGFloat(2*M_PI),  CGFloat(M_PI), false)

0 个答案:

没有答案