2014-01-19 108 views
4

我只能從Stackoverflow和HandleOpenUrl找到有關itms-apps方案的二級信息源。iOS URI鏈接到應用程序商店中的應用程序(itms-apps)

是否有任何正式文件說明如何使用itms-apps或誰維護它?

+0

沒有關於'itms-apps' URL方案的官方文檔。下面我的[答](http://stackoverflow.com/a/21213833/368085)爲您提供了最好的非官方信息。 – mluisbrown

+0

這裏是答案 - http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store –

回答

6

source從尼克·洛克伍德的iRate項目:

iOS6的(或更早):

itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=

iOS7:

itms-apps://itunes.apple.com/app/id

您只需將應用程序ID附加到上面的字符串即可完成URL。

AFAIK沒有此信息的官方來源,它可能已被反向設計。

0

此鏈接有來自蘋果技術問答& A. Creating easy-to-read short links to the App Store for your apps and companyLaunching the App Store from an iPhone application

第二個鏈接來自於第一個鏈接的頁面的答案。我認爲它完成了你的要求。

簡而言之,

NSString *iTunesLink = @"http://itunes.apple.com/us/app/id{your app id}?mt=8"; 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]]; 
+0

抱歉,但這並沒有回答這個問題。沒有在文檔中提到該方案itms-apps – platypus

+0

請仔細閱讀文檔,它們都鏈接在一起。 –

+0

itms-apps似乎不再適用於IOS7。請仔細檢查。 –

1

我只是嘗試這樣做,它適用於iOS9:

itms-apps://itunes.apple.com/app/idID_OF_YOUR_APP,它會打開應用程序直接在商店中。

相關問題