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.
如果用户在我的应用程序的设置中(来自我的 settings.bundle)将设置切换为“ON”,我可以让应用程序在下次将应用程序置于前台/启动时将其切换回“OFF”吗?
绝对地。只需使用
[[NSUserDefaults standardUserDefaults] setBool: NO forKey:<your-key>]
你可以走了。