iPhone Xcode Settings.bundle Plist

断了今生、忘了曾经 提交于 2019-12-06 13:17:58

Make sure that, as the tutorial says, you tell the app that you're creating a plist for iPhone settings:

Select the Root.plist file, click on the Root entry in the detail view to ensure it is selected and then from the Xcode view menu select Property List Type -> iPhone Settings plist.

To set the application defaults, you might consider trying this code instead:

// Set the application defaults
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setBool:YES forKey:@"ShuffleToggleKey"];
[defaults synchronize];

This will initialize a default database on the user's phone, and take care of preference storage for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!