发现扩展时遇到的错误:错误域= PlugInKit代码= 13"查询已取消" UserInfo = {NSLocalizedDescription = query canceled}
答案 0 :(得分:0)
您需要获得访问图书馆的权限
YourPhotoLibrary.requestAuthorization({ (status: YPLAuthorizationStatus) -> Void in()
if YourPhotoLibrary.authorizationStatus() == YPLAuthorizationStatus.authorized {
// Implement your UIImagepicker method here
}
})
答案 1 :(得分:0)
这是图像选择器的代码