Is it possible to access the metadata of an image captured by UIImagePickerController in iOS? I understand this can be done with AssetLibrary framework for images captured by the camera application (or otherwise present in the iPhone photo library), but can a developer access any of the metadata/exif info from within an application right after a user has taken a picture? I'm looking for any type of camera exposure-level info from an image after it has been taken. Thanks!
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- How to write CUSTOM metadata into JPEG with Python
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
Apparently, you can access the metadata of an image right after it has been taken. The protocol method that is called by the system after an image has been selected is:
The NSDictionary argument, info, contains a key:
UIImagePickerControllerMediaMetadata
Now if I can figure out how to get the exif tags or any exposure-level information from this to infer basic information about light-level I will be happy. :)
updated to iOS 11 with photos framework
Objective - C:
You also need the permission of Photo library Usage (NSPhotoLibraryUsageDescription) and then can add the following code to view did load or view did appear