Last active
December 30, 2015 20:59
-
-
Save lobrien/7883900 to your computer and use it in GitHub Desktop.
Completion-Handler version
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
public override void TouchesBegan(NSSet touches, UIEvent evt) | |
{ | |
var addressString = "2 Park Plaza, Boston, MA, USA 02116"; | |
var geocoder = new CLGeocoder(); | |
geocoder.GeocodeAddress(addressString, (addresses, error) => { | |
foreach(var address in addresses) | |
{ | |
Console.WriteLine(address); | |
} | |
}); | |
Console.WriteLine("Geocoding the shit out of that"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment