Setting up a plist to store application data (not settings) for an iPhone game

后端 未结 2 1978
逝去的感伤
逝去的感伤 2020-12-05 16:52

I am writing an iPhone game and have it working well with my level data hard coded but I would like to store the level data in a plist a load it at launch. I have never use

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 17:17

    What you should do is create an NSDictionary with all of the applicable data that you want, and read it from and write it to NSUserDefaults.

提交回复
热议问题