how to open a itunes link in uiwebview

青春壹個敷衍的年華 提交于 2019-12-24 00:58:57

问题


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?

Regards
Pankaj


回答1:


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

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



来源:https://stackoverflow.com/questions/14535167/how-to-open-a-itunes-link-in-uiwebview

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