xcode 为什么 url 在 iOS 6 上的行为不同
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12522284/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why does url behave differently on iOS 6
提问by iOSDev
I am trying to launch my page on the app store from my app using the same code that works on iOS 5. Did Apple change the way this works in iOS 6? The app store is launching and saying "Cannot connect to iTunes Store"
我正在尝试使用适用于 iOS 5 的相同代码从我的应用程序在应用程序商店中启动我的页面。Apple 是否改变了它在 iOS 6 中的工作方式?应用商店正在启动并显示“无法连接到 iTunes Store”
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.com/apps/myname"]];
回答by CReaTuS
I think, for solve this, just WAIT. It seems problem in Apple servers.
我想,要解决这个问题,就等着吧。苹果服务器似乎有问题。
For additional info click here
如需更多信息,请单击此处
For your problem colleagues click here
对于您的问题同事,请单击此处
EDITED:
编辑:
If is not server problem, then try just:
如果不是服务器问题,请尝试:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/ru/app/facebook/id284882215?mt=8"]];
and safari will open a iTunes
和 safari 将打开一个 iTunes