ios - CGPoint compiler error -
i've tried write expression:
 var  movedifference: cgpoint = cgpoint(touchpoint.x - self.anchorpointinpoints().x, touchpoint.y - self.anchorpointinpoints().y) but xcode swears:
argument labels '(_:, _:)' not match available overloads
please fix problem.
thanks in advance.
you missed argument labels on cgpoint initializer:
cgpoint(x: ..., y: ...) also: type inference, don't need redeclare var type:
var movedifference = cgpoint(... 
Comments
Post a Comment