如何在uiwebview中打开iTunes链接 [英] how to open a itunes link in uiwebview

查看:68
本文介绍了如何在uiwebview中打开iTunes链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在uiwebview中加载应用商店链接.我试图在uiwebview中打开它,但没有在其中加载.我不希望用户单击我的应用程序的网址时离开我的应用程序.有可能吗?

Is it possible to load a app store link in uiwebview. I have tried to open it in uiwebview but it doesnt load in there. I dont want users to leave my app when they click on the url from my app. Is it possible?

致谢
潘卡(Pankaj)

Regards
Pankaj

推荐答案

iTunes内容在移动设备上没有"iTunes Preview"页面-iOS自动识别itunes.apple.com链接并打开商店.

iTunes content does not have an "iTunes Preview" page on mobile - iOS automatically recognizes itunes.apple.com links and opens the store.

如果要将用户保留在您的应用程序中,请使用SKStoreProductViewController将商店打开到特定内容.用户关闭工作表后,他们仍然在您的应用程序中.

If you want to keep the user within your app, use SKStoreProductViewController to open the store to a specific piece of content. After the user dismisses the sheet, they are still within your app.

http://developer.apple .com/library/ios/#documentation/StoreKit/Reference/SKITunesProductViewController_Ref/Introduction/Introduction.html

这篇关于如何在uiwebview中打开iTunes链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆