【发布时间】:2015-02-11 13:20:26
【问题描述】:
我想创建一个获取 base64 图像数据并将其显示在 UIImageView 中的应用程序。我已经阅读了很多关于如何实现这一点的信息,但没有成功。我知道我有一个有效的 base64 图像数据,但我无法在 UIImageView 中显示它。
这是我的代码:
[ImageView setImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:ImageData]]]];
ImageView 是我的 UIImageView 而ImageData 是我作为 NSString 的 base64 数据。
【问题讨论】:
标签: ios objective-c uiimageview base64