开发者

Can plist files be used for holding large data such as image data etc

I want to use plist files to hold large data such as image data and other texts. Is this feasible or is it that plist are for holding small string such as needed 开发者_开发知识库for settings etc. Will there be any memory issues.

-- Regards,

U'suf


Yes. You can serialize anything into an NSData and put it into a plist.

But a plist is more suitable to store changeable settings, not large binary blobs.


Plists are indeed intended to store relatively small data. As an option you can save image to a file (it may be better solution even if you use database) and store path to the image in plist to load it from there when needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜