Created
February 9, 2016 16:24
-
-
Save codefriar/e04588d216750614cfe6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Line 6: Cannot invoke 'MKCircle.Type.init' with an argument list of type '(centerCoordinate: CLLocationCoordinate2D, radius:CLLocationDistance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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