不使用 initWithContentsOfFile 将 plist 读取到 NSMutableArray
我有一个 NSMutableArray ,它将反复填充 plist 中不断变化的内容。我怎样才能最有效地做到这一点? 我知道我可以使用第二个 NSArray,我先分配 initWithContentsOfFile,然后分配 arrayWithArray,但是没有方法可以直接加载文件内容而无需 init (考虑到性能)。只是好奇。
提前致谢。
I have a NSMutableArray which repeatedly will be filled with the changing contents of a plist. How do I do this most efficiently?
I know I could use a second NSArray which I alloc initWithContentsOfFile and then arrayWithArray, but isn't there method to directly load the contents of a file without init (thinking of performance). Just curious.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)