从代码打开应用商店 [英] Open app store from code
本文介绍了从代码打开应用商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一些免费应用程序中,有一个购买专业版应用程序的按钮,如果你触摸它应用程序商店应用程序将打开我怎么能从代码?
In some free apps there is a button for buy pro version of app that if you touch it app store app will open how can i do that from code ?
推荐答案
如果您只是以下情况,iPhone / iPad将自动识别AppStore网址:
The iPhone/iPad will automatically recognize an AppStore URL if you just:
- (IBAction)OpenAppInAppStore {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/us/app/wolframalpha/id334989259?mt=8"]];
}
或者如果您打开任何包含<$ c的网址$ c> itms:// 并且只在设备上
or if you open any URL that has "itms://
" and only on the device
这篇关于从代码打开应用商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文