Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
游戏更新是否会存储用户详细信息,如分数和解锁级别,否则会将游戏重置为新游戏。
不,我正在开发一个有 10 个关卡的游戏并将发布它。另外 10 个关卡将作为下一个版本提供。在更新时是否会存储旧分数。
任何人都可以帮助我解决这个问题。提前致谢。
如果你想存储分数等信息,你应该使用 NSUserdefaults。
喜欢:
NSUserDefaults *highscore = [NSUserDefaults standardUserDefaults]; int playerHighscore = [highscore integerForKey:@"playerHighscore"];