打开IOS设置首选项 [英] Opening IOS settings preferences
本文介绍了打开IOS设置首选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在IOS iphone应用程序中打开设置首选项时出现问题.目前,我只是使用一个简单的按钮进行测试,但似乎无法正常工作.
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.
基本上,当我单击按钮时,我要打开特定的设置首选项页面.这就是我当前在按钮IBACTION中使用的内容:
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中工作
should work in iOS 5
...更新:
opening with the prefs url was disabled in iOS 5.1
塞巴斯蒂安
这篇关于打开IOS设置首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文