Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
  2. let url = info[UIImagePickerControllerReferenceURL] as? URL
  3. if url != nil {
  4.  
  5. let fetchResult = PHAsset.fetchAssets(withALAssetURLs: [url!], options: nil)
  6. let asset = fetchResult.firstObject
  7. print(asset?.location?.coordinate.latitude)
  8. print(asset?.creationDate)
  9. }
  10. }
Add Comment
Please, Sign In to add comment