Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created June 24, 2015 06:22
Show Gist options
  • Save srkirkland/78fcfdda8c61f80e9cfc to your computer and use it in GitHub Desktop.
Save srkirkland/78fcfdda8c61f80e9cfc to your computer and use it in GitHub Desktop.
get asset info including location from uiimage
var refurl = obj.ValueForKey(UIImagePickerController.ReferenceUrl) as NSUrl;
//TODO: refurl is null on newly taken images
var lib = new ALAssetsLibrary();
lib.AssetForUrl(refurl, (ALAsset asset) => {
var loc = asset.Location;
}, (NSError error) => {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment