UIImagePickerController crashes on iOS10

后端 未结 4 1685
鱼传尺愫
鱼传尺愫 2020-12-31 01:33

On presenting UIImagePickerController with photo library source on iOS10, my app crashes.

On iOS10 with camera source and on iOS9<

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 02:08

    You may need to put the NSCameraUsageDescription (if your app uses the Camera) and NSPhotoLibraryUsageDescription (if your app uses the Photo Library) in your plist. Like below,

    NSCameraUsageDescription
    $(PRODUCT_NAME) needs access to use your camera
    
    NSPhotoLibraryUsageDescription
    $(PRODUCT_NAME) needs access to use your photo library
    

提交回复
热议问题