As we mentioned earlier, Apple stipulates that your app must inform the user if it wishes to access the camera or photo library. If you don't do this, your app will be rejected and will not be allowed on the app store.
To learn more about requesting permission to use the camera, go to https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios.
Follow these steps:
- Click Info.plist in the Project navigator to display a list of keys. Move your mouse pointer over any existing key and click the + button, as follows:
- A field should appear, allowing you to enter an additional key, as follows:
- Enter the following keys:
NSPhotoLibraryUsageDescription
NSCameraUsageDescription
- For each key's value, enter a string that explains to the user why you...