Monday, June 29, 2026
HomeiOS Developmentios - UIImagePickerController.InfoKey doesn't include UIImagePickerControllerPHAsset entry when accessing simulators or iPad

ios – UIImagePickerController.InfoKey doesn’t include UIImagePickerControllerPHAsset entry when accessing simulators or iPad

[ad_1]

I’m attempting to get all metadata from picture information in iPhone and iPad libraries from the photograph library. To be able to do that I’m including code into the code beneath which runs after choosing a picture from the photograph library:

`func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo data: [UIImagePickerController.InfoKey : Any]) {

}`

when the code runs on an iPhone 8 working iOS 15.6 the data object accommodates 5 entries, one in all which has the important thing “UIImagePickerControllerPHAsset”. When the code runs on an iPad, the iPhone 8 simulator or the iPad iOS 15.5 simulator there are solely 4 entries and the important thing “UIImagePickerControllerPHAsset” just isn’t current. There is no such thing as a Settings worth for the app on the iPad and on the iPad 8 simulator. Within the iPad simulator the one Settings choices for the app are Add Picture and None. Is there a approach of making certain that All Pictures entry might be supplied on the iPad or the simulators?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments