我正在嘗試展示有限的影像選擇器,但我得到了
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PHPhotoLibrary presentLimitedLibraryPickerFromViewController:]
我在用
#import <Photos/Photos.h>
#import <PhotosUI/PhotosUI.h>
盡管 self 是視圖控制器,但此行崩潰
[[PHPhotoLibrary sharedPhotoLibrary] presentLimitedLibraryPickerFromViewController:self];
任何想法為什么?
uj5u.com熱心網友回復:
快速搜索發現:
可能是一個“錯誤”......可能是錯誤的檔案......
添加PhotosUI.framework到您的目標:

轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/426052.html
