在我的应用程序中嵌入 App Store [英] Embed App Store in my app
问题描述
我在 App Store 中看到允许您下载其他游戏的游戏.它不是应用切换到 App Store 来下载其他游戏,而是在应用本身中启动了一个嵌入式 App Store.
I see games in the App Store that allow you to download other games. Rather than app switching to the App Store to download the other game, it brings up an embedded App Store within the app itself.
Zoo Country 是执行此操作的应用示例.
Zoo Country is an example of an app that does this.
我所知道的让某人到应用商店下载另一个应用的唯一方法是做这样的事情,但这会切换应用:
The only way I know of to bring someone to the app store to download another app is to do something like this, but this switches apps:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/appname"]];
Zoo Country 如何嵌入 App Store?
How is Zoo Country embedding the App Store?
推荐答案
您想使用 SKStoreProductViewController
类.文档此处.
You want to use the SKStoreProductViewController
class. Docs here.
这篇关于在我的应用程序中嵌入 App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!