开发者

Settings application required

开发者 https://www.devze.com 2023-01-31 08:08 出处:网络
My app use a Settings bundle to manage preferences from the Settings application. How can I make mandatory the inclusion of these preferences? If开发者_StackOverflow中文版 the user starts the applica

My app use a Settings bundle to manage preferences from the Settings application.

How can I make mandatory the inclusion of these preferences? If开发者_StackOverflow中文版 the user starts the application without having set its preferences I can tell to the user that before using the application should set preferences?

Many thanks!


The more user-friendly way to do this would be to have a setup screen that asks for the required information if it has not been entered yet.

To detect if anything has been set, just check the return from [NSUserDefaults objectForKey:]. If it is nil, then you know that nothing has been entered yet.

0

精彩评论

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