Created
December 10, 2013 00:51
-
-
Save lobrien/7883976 to your computer and use it in GitHub Desktop.
Async version
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
public override void TouchesBegan(NSSet touches, UIEvent evt) | |
{ | |
var addressString = "2 Park Plaza, Boston, MA, USA 02116"; | |
var geocoder = new CLGeocoder(); | |
var taskCoding = geocoder.GeocodeAddressAsync(addressString); | |
taskCoding.ContinueWith((addresses) => { | |
Console.WriteLine("Continuation"); | |
foreach(var address in addresses.Result) | |
{ | |
Console.WriteLine(address); | |
} | |
Console.WriteLine("Finished"); | |
}); | |
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