Skip to content

Instantly share code, notes, and snippets.

@acappelli
Created February 6, 2015 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acappelli/719aaf921bc3acb0238a to your computer and use it in GitHub Desktop.
Save acappelli/719aaf921bc3acb0238a to your computer and use it in GitHub Desktop.
Ciclo
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