iOS 10 error [access] when using UIImagePickerController

后端 未结 5 914
野趣味
野趣味 2020-11-28 20:03

I am using XCode 8 and testing with iOS 10.2 Beta.

I have added the Photos, PhotosUI and MobileCoreServices frameworks to project.

Very simple code:

5条回答
  •  囚心锁ツ
    2020-11-28 20:40

    You may need to put the NSPhotoLibraryUsageDescription in your plist. Like

    NSPhotoLibraryUsageDescription
    $(PRODUCT_NAME) uses photos
    

    Check all the usage descriptions here.

提交回复
热议问题