UIImagePickerController crashes app | Swift3, Xcode8

后端 未结 4 544
长情又很酷
长情又很酷 2020-12-01 10:34

FYI: I´m new to Swift so this might be a really simple problem but I just can´t figure it out.

I have been following the Start Developing iOS Apps (Swift) t

4条回答
  •  日久生厌
    2020-12-01 11:30

    Add this key to your info.plist,

    Key : Privacy - Photo Library Usage Description [ NSPhotoLibraryUsageDescription ]
    String Value : We need access to your camera roll and photo library, so that we can do operations on it. [ Customise it in your own way] 
    

    That's it, Clean & Run the project.

提交回复
热议问题