如何直接从我的应用程序启动 Appstore 应用程序
我现在使用了几个直接从应用程序启动 itunes 商店的应用程序.我什至在我的 2.1 iPod 2G 上使用了一些.
I've used several apps now that launch the itunes store directly from the app. I'm even using some on my 2.1 iPod 2G.
我知道 2.1 中存在一个错误,导致应用商店链接无法在 safari 中工作,但不知何故人们直接启动了应用商店,甚至不通过 safari.
I know there's a bug in 2.1 that prevents appstore links from working in safari, but somehow people are launching the appstore directly, not even through safari.
你是怎么做到的?它是未公开的 openURL 功能吗?
How do you do this? Is it an undocumented openURL feature?
从 iTunes 中,将您的应用程序图标拖到桌面,这会给您一个可以直接使用的链接(例如,http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284036524&mt=8 在桌面和 iPhone 上启动 AppStore 到填字游戏).
From iTunes, drag the icon of your app to the desktop, this will give you a link you can use directly (for example, http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284036524&mt=8 launches the AppStore to Crosswords, both on a desktop and an iPhone).
将其弹出到 NSURL 中并在其上调用 openURL.
Pop this into an NSURL and call openURL on it.