Last active
December 29, 2015 08:42
-
-
Save mortenjust/c947910a09c9ea426f4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLPlacemark_class/index.html#//apple_ref/occ/cl/CLPlacemark | |
CLGeocoder().reverseGeocodeLocation(location) { (placemarks, err) -> Void in | |
if let p = placemarks { | |
let address = p[0].name! | |
self.locationLabel.text = address | |
} else { | |
self.locationLabel.text = "" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment