Sol*_*444 37 iphone xcode uiimagepickercontroller uiimage
当我尝试从照片库中读取图像时,我收到错误消息"超过最多5个过滤的专辑列表试图注册.这将失败." 图像未读取.
知道如何解决这个问题吗?
iHS*_*iHS 17
我认为你没有检查源类型.你可能正在做
self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;
Run Code Online (Sandbox Code Playgroud)
如果是这种情况,则必须在直接分配之前检查源类型.喜欢
if ([UIImagePickerController isSourceTypeAvailable:
UIImagePickerControllerSourceTypePhotoLibrary])
{
// Set source to the Photo Library
self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;
}
Run Code Online (Sandbox Code Playgroud)
我希望它有所帮助
小智 8
而不是这个
self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;
Run Code Online (Sandbox Code Playgroud)
使用
self.sourceType =UIImagePickerControllerSourceTypeSavedPhotosAlbum;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12439 次 |
| 最近记录: |