打开IOS设置首选项(Opening IOS settings preferences)
我在IOS iphone应用程序中打开设置首选项时遇到问题。 目前我只是使用一个简单的按钮来测试,它似乎没有正常工作。
基本上,当我单击按钮时,我想要打开一个特定的设置首选项页面。 这是我目前在我的按钮IBACTION中使用的内容:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];希望你们能帮助我解决这个问题,提前谢谢。
Im having a problem opening the settings preferences in my IOS iphone app. At the moment im just using a simple button to test and it doesn't seem to be working correctly.
Basically when I click the button I want a specific settings preference page to open. This is what Im currently using within my buttons IBACTION:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];Hope you guys can help me out with a solution for this, thanks in advance.
最满意答案
试试这个:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];应该在iOS 5中工作
......更新:
opening with the prefs url was disabled in iOS 5.1塞巴斯蒂安
try this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];should work in iOS 5
... update:
opening with the prefs url was disabled in iOS 5.1sebastian
更多推荐
发布评论