简体   繁体   English

如何从本机应用程序读取iPhone首选项

[英]How to read iPhone preferences from native application

Is there any way I can read settings for iPhone preferences. 有什么办法可以读取iPhone首选项的设置? I wanted to read whether the push notification flag is on or not. 我想阅读推送通知标志是否打开。 Based on this setting, I wanted to take some action in my native application. 基于此设置,我想在本机应用程序中执行一些操作。 Please guide. 请指导。 替代文字

You can read settings for your application using NSUserDefaults . 您可以使用NSUserDefaults读取应用程序的设置。 If you are asking if you can read whether push notifications are on globally, then no, I don't think you can. 如果您问是否可以阅读推送通知是否全局启用,那么不,我认为您可以。 If your application asks to use them, it will ask the user if they want to turn them back on, but that is all you can do. 如果您的应用程序要求使用它们,它将询问用户是否要重新打开它们,但这就是您所能做的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM