var posinonY:Float = Float(y) + Float(pipeDown.size.height) + Float(verticalPipeGap) pipeDown.position = CGPointMake(0.0, Float(posinonY))
I get this error:
"NSNumber" is not a subtype of "CGFloat"
Why?
Edit:
CGFLoat needs a double type
pipeDown.position = CGPointMake(0.0, Double(posinonY))
this is normal.
swift
Aeli.li Jun 03 '14 at 7:55 a.m. 2014-06-03 07:55
source share