iPhone,“超过最多5个过滤的专辑列表试图注册。这将失败。“错误 [英] iPhone, "More than maximum 5 filtered album lists trying to register. This will fail." Error

查看:98
本文介绍了iPhone,“超过最多5个过滤的专辑列表试图注册。这将失败。“错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从照片库中读取图像时,我收到错误消息超过最多5个过滤的专辑列表试图注册。这将失败。图片未被阅读。

When I try to read an image from the photo library I get the error, "More than maximum 5 filtered album lists trying to register. This will fail." The image is not read.

任何想法如何解决这个问题?

Any idea how to fix this?

推荐答案

我认为你没有检查源类型。
你可能在做什么

I think you are not checking the source type. You might be doing

 self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;

如果是这种情况,则必须先检查源类型,然后再直接分配。
like

If this is the case, then you have to check the source type before assigning it directly. like

 if ([UIImagePickerController isSourceTypeAvailable:
     UIImagePickerControllerSourceTypePhotoLibrary]) 
  {
       // Set source to the Photo Library
       self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;

  }

我希望有帮助

这篇关于iPhone,“超过最多5个过滤的专辑列表试图注册。这将失败。“错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆