Created
February 6, 2015 15:04
-
-
Save acappelli/719aaf921bc3acb0238a to your computer and use it in GitHub Desktop.
Ciclo
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
for (var i = 0; i < jsonResult["content"].count; i++) { | |
var location:CLLocationCoordinate2D = CLLocationCoordinate2DMake(jsonResult["content"][i]["lat"].double!, jsonResult["content"][i]["lng"].double!); | |
var annotation = MKPointAnnotation() | |
annotation.setCoordinate(location) | |
annotation.title = jsonResult["content"][i]["indirizzo1"].string | |
mapView.addAnnotation(annotation) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment