I'm building an iphone app, and I wanna use the iPhone's built in Preferences stuff. It looks like I put options in there, but I'm interested in putting a Reset button in the Prefs. I see that Apple's built-in apps like Safari have buttons in their prefs (Clear History, Clear Cookies, etc). I don't see a way to do this for SDK apps. Help!
prefqguy
问问题
862 次
2 回答
1
由于您可以在运行时设置自己的应用程序首选项,因此您可以做的一件事是创建“下次运行时重置首选项”切换。
当您的应用程序启动时,请检查此设置,如果设置为“开”,请采取相应措施。不要忘记也重置切换。;-)
这是一个解释如何执行此操作的问答:如何通过代码更改应用程序偏好设置?
于 2009-10-09T22:52:56.927 回答