Embed App Store in my app

房东的猫 提交于 2019-12-19 04:50:58

问题


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 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"]];

How is Zoo Country embedding the App Store?


回答1:


You want to use the SKStoreProductViewController class. Docs here.



来源:https://stackoverflow.com/questions/17178818/embed-app-store-in-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!