Getting permission to use the camera or photo library

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.

Follow these steps:

  1. 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:

Get iOS 13 Programming for Beginners - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.