Access to Camera and PhotoLibrary

后端 未结 4 1379
野性不改
野性不改 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 04:03

    If you are running on iOS10, you have to add entries in Info.plist for accessing camera

    put this key in Info.plist

    Privacy-Camera Usage Description

    http://useyourloaf.com/blog/privacy-settings-in-ios-10/

    If not the app would crash as is happening in your case

提交回复
热议问题