【问题标题】:When I use UIImageWriteToSavedPhotosAlbum I get a weird error当我使用 UIImageWriteToSavedPhotosAlbum 时,我收到一个奇怪的错误
【发布时间】:2011-11-09 14:36:10
【问题描述】:

使用任何 UIImage 调用它后,我收到此错误:Error Domain=ALAssetsLibraryErrorDomain Code=-3304 "Failed to encode image for saved photos." UserInfo=0x17de90 {NSLocalizedDescription=Failed to encode image for saved photos.}

有人知道怎么解决吗?

【问题讨论】:

  • 显示您用来保存照片的代码。

标签: iphone error-handling uiimage save nserror


【解决方案1】:

错误的原因是我保存了一个 0 宽度和 0 高度的图像,我修复了它并且它工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-27
    • 1970-01-01
    • 1970-01-01
    • 2014-08-13
    • 1970-01-01
    相关资源
    最近更新 更多