2014-03-19 54 views
0

如何在设置中在Safari中打开URL?如何从settings.bundle在Safari中打开URL

喜欢的东西在Nike+ App

是否需要进行定制?我似乎无法找到在Root.plist中添加URL的类型。

+0

请参阅此链接 - http://stackoverflow.com/questions/5959274/how-can-you-launch-a-url-from-the-ios-settings-bundle – RAJA

+0

参考这个网址..希望这可以帮助你http://digdog.tumblr.com/post/490664298/ddopenurlspecifier – RAJA

回答

0

你可以看看这个在git的https://github.com/futuretap/InAppSettingsKit

然后把这个值入的plist

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>DefaultValue</key> 
    <string>inappsettingskit.com</string> 
    <key>File</key> 
    <string>http://www.inappsettingskit.com/</string> 
    <key>Title</key> 
    <string>Open URL</string> 
    <key>Type</key> 
    <string>IASKOpenURLSpecifier</string> 
</dict> 
</plist> 
+0

请注意,这只能从应用程序中显示的设置页面打开URL。 – mattsson

0

类似GSiklos的回答abouve,但使用Xcode中的plist编辑器中,变化是:

PList Editor Example

注意默认,任何URL在IASK设置显示在不显示标准的iOS设置页面(有用)