xcode 从 iPhone 应用程序链接 appStore 中的开发者页面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3157853/
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
Linking the Developer Page at the appStore from an iPhone App
提问by camilo
So I know how to open an app page on the appStore from within my iPhone app.
所以我知道如何从我的 iPhone 应用程序中打开 appStore 上的应用程序页面。
Is there a way to open my company's page? On iTunes on my mac I can do that, but using that URL in the iPhone I can't (or I'm not doing it right).
有没有办法打开我公司的页面?在我的 Mac 上的 iTunes 上我可以做到这一点,但在 iPhone 中使用该 URL 我不能(或者我做得不对)。
Thanks in advance.
提前致谢。
回答by iwasrobbed
This is a great article on this subject: http://bjango.com/articles/ituneslinks/
这是关于这个主题的一篇很棒的文章:http: //bjango.com/articles/ituneslinks/
Quote from the article:
引自文章:
http://itunes.com/apps/developer— Search for all apps by developer
http://itunes.com/apps/developer— 按开发者搜索所有应用
It's also possible to link to all apps by one developer, but there's a catch. On a Mac or a PC, this will open iTunes and land on a developer's page. On an iPhone or iPod touch it'll do a bit of a dance, opening MobileSafari, then iTunes, then the App Store app. Not ideal, a bit ugly and slow, but it gets there in the end.
也可以由一个开发人员链接到所有应用程序,但有一个问题。在 Mac 或 PC 上,这将打开 iTunes 并登陆开发人员页面。在 iPhone 或 iPod touch 上,它会跳舞,打开 MobileSafari,然后是 iTunes,然后是 App Store 应用程序。不理想,有点丑陋和缓慢,但它最终到达了那里。
If you'd like to hide the redirections and speed up the process, Apple recommend using NSURLConnection
.
如果您想隐藏重定向并加快流程,Apple 建议使用NSURLConnection
.
回答by BObereder
this prevents it to do little dance it does normally
这可以防止它正常跳舞
NSString *iTunesLink = @"itms-apps://itunes.com/apps/companyname/";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
回答by Vitaliy Gozhenko
I used such URL in iOS 8, 9:
我在 iOS 8、9 中使用了这样的 URL:
itms-apps://itunes.apple.com/developer/tivogi/id507966848
itms-apps://itunes.apple.com/developer/tivogi/id507966848
where tivogi
is the developer's account name and id507966848
is the your developer id.
哪里tivogi
是开发者的账户名,id507966848
是你的开发者ID。
You can find correct link for you in the any browser: just go to developer page, copy url, and change scheme to itms-apps
您可以在任何浏览器中找到正确的链接:只需转到开发者页面,复制 url,并将方案更改为 itms-apps
回答by Hindu
In IOS SDK 6 and above, use below link for open developer link from app
在 IOS SDK 6 及更高版本中,使用以下链接从应用程序打开开发人员链接
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?artistId=524402507"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?artistId=524402507"]];
........
…………