开发者

Several questions about plist in iOS

I implemented the plist in my iOS game following this tutorial:

Now I have several questions about plist file in iphone.

  1. My plist file is fine, but my plist file in the proj开发者_StackOverflow中文版ect 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)

  2. 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?


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 .

Because the property-list file is in the Resources folder, it will be written to the application’s main bundle when you build the project.

So it will be overwritten every time when you build your project. therefore when user update the game it will be overwritten.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜