iOSPicturePicker

From Xojo Documentation

Class (inherits from Object)

New in 2016r2

The iOSPicturePicker allows selection of an image stored on the device (or taken with the camera) for use in the app.

Events
Cancelled Selected
Properties
Handle fa-lock-32.png IsEditable Source
Methods
Show
Enumerations
Sources

Notes

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>


See Also

iOSBitmap, iOSImage classes