Access to Camera and PhotoLibrary

后端 未结 4 1331
野性不改
野性不改 2021-01-26 03:12

In my iOS app I have an ImageView and two Buttons for opening the camera and the photolibrary. When I click on one of the buttons the app closes. (I\'m running the app on my dev

4条回答
  •  一整个雨季
    2021-01-26 03:56

    If you are developing the app in ios 10 , then have to add the privacy permission setting in your info.plist and describe something where you need this privacy.

    Privacy Setting List:

    Bluetooth Sharing – NSBluetoothPeripheralUsageDescription

    Calendar – NSCalendarsUsageDescription

    CallKit – NSVoIPUsageDescription

    Camera – NSCameraUsageDescription

    Contacts – NSContactsUsageDescription

    Health – NSHealthShareUsageDescription & NSHealthUpdateUsageDescription

    HomeKit – NSHomeKitUsageDescription

    Location – NSLocationUsageDescription, NSLocationAlwaysUsageDescription,

    NSLocationWhenInUseUsageDescription

    Media Library – NSAppleMusicUsageDescription

    Microphone – NSMicrophoneUsageDescription

    Motion – NSMotionUsageDescription

    Photos – NSPhotoLibraryUsageDescription

    Reminders – NSRemindersUsageDescription

    Speech Recognition – NSSpeechRecognitionUsageDescription

    SiriKit – NSSiriUsageDescription

    TV Provider – NSVideoSubscriberAccountUsageDescription

提交回复
热议问题