Skip to content

Instantly share code, notes, and snippets.

@codefriar
Created February 9, 2016 16:24
Show Gist options
  • Save codefriar/e04588d216750614cfe6 to your computer and use it in GitHub Desktop.
Save codefriar/e04588d216750614cfe6 to your computer and use it in GitHub Desktop.
Line 6: Cannot invoke 'MKCircle.Type.init' with an argument list of type '(centerCoordinate: CLLocationCoordinate2D, radius:CLLocationDistance)
class MCCircle: MKCircle {
class func circleWithCenterCoordinate(coord: CLLocationCoordinate2D, radius:CLLocationDistance, strokeColor color:UIColor) -> Self {
var circle = MCCircle()
if(circle = super.init(centerCoordinate: coord, radius: radius)){
circle.strokeColor = color
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment