iOS中关于plist的几个问题
我按照 这个教程:
现在我有几个关于 iPhone 中的 plist 文件的问题。
我的plist文件没问题,但是当向plist文件写入数据时,项目文件夹中的plist文件没有改变。教程说“在 ~/Documents 中查找 Data.plist 文件并在文本编辑器中打开它”,但我找不到 ~/documents。那么它在哪里呢? (更改后的plist文件)
在我的plist文件中,我将highscore写入其中。当我发布游戏并稍后更新游戏时,plist 文件是否会重置为默认值?换句话说,它会被覆盖?
I implemented the plist in my iOS game following this tutorial:
Now I have several questions about plist file in iphone.
My plist file is fine, but my plist file in the project folder is not changed when write data to the plist file. The tutorial said " Find the Data.plist file in ~/Documents and open it in a text editor", but I can't find ~/documents. So where it is? (the changed plist file)
In my plist file, I wrote highscore into it. When I published my game, and update my game later, the plist file is it will be reset to default? In other words it will be overwrite?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于你的第一个问题。
1->要在 XCode 中查看 .plist 文件,您必须通过“xCode”在项目中创建并添加该文件。
2-来自苹果文档。
所以每次构建项目时它都会被覆盖。因此,当用户更新游戏时,它将被覆盖。
For your first question.
1-> To view your .plist file in XCode , you will have to create and add that in your project through the `xCode.
2- From Apple documentation .
So it will be overwritten every time when you build your project. therefore when user update the game it will be overwritten.