From Xojo Documentation
| This item was deprecated in version 2020r2.
Please use MobileImagePicker as a replacement.
| This class is supported on Mobile (iOS).
Use ＃If...＃Endif with the Target... constants to ensure you only use this class where it is supported.
New in 2016r2
The iOSPicturePicker allows selection of an image stored on the device (or taken with the camera) for use in the app.
2018r3 and later automatically add the NSCameraUsageDescription key to the plist.
If your source is set to Sources.Camera and you're using an earlier version of Xojo, then you will also need to add a plist entry to tell iOS to allow camera access.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NSCameraUsageDescription</key> <string>Allow user to access the camera.</string> </dict> </plist>