如何从xml文件中读取图像? [英] how to read images from xml file?
本文介绍了如何从xml文件中读取图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从xcode项目中的xml文件中读取图像?
我们如何在iphone中显示该图像?
how to read images from xml file in xcode project? How did we display that image in iphone?
推荐答案
使用 NSCoding
,您将 UIImage
转换为某些 NSData
。然后将 NSData
对象添加到数组或 NSDictionary
,最后保存 NSDictionary
到磁盘。或者你想用XML文件做什么。
Use NSCoding
, you convert the UIImage
to some NSData
. Then you add the NSData
object to an array or an NSDictionary
and finally you save that NSDictionary
to the disk. Or whatever you want to do with the XML file.
这篇关于如何从xml文件中读取图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文