How to get a NSDATE from UIImage?

前端 未结 3 1008
栀梦
栀梦 2021-01-07 04:08

How do i get a date or metadata from a UIImage in this case:

//UIImagePickerControllerSourceType
picker.sourceType = UIImagePickerControllerSourceTypePhotoLi         


        
3条回答
  •  旧时难觅i
    2021-01-07 04:53

    The info dictionary contains a key called "UIImagePickerControllerMediaMetadata" which is another dictionary. Just NSLog allKeys of that to get the date key.

提交回复
热议问题