如何去应用商店(从应用程序内)编程? [英] How to go to the app store (from within app) programmatically?
本文介绍了如何去应用商店(从应用程序内)编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点击一个UIView后,我想利用我的应用程序的用户从我的应用程序和其他应用程序在App Store。我该怎么做呢?
解决方案
* NSString的buyString = @http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=APP_ID&mt=8NSURL * URL = [[NSURL页头] initWithString:buyString];
[UIApplication的sharedApplication]的OpenURL:URL];
[URL发布]
After clicking on a UIView I want to take the user of my app OUT of my app and to another app on the app store. How do i do it?
解决方案
NSString *buyString=@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=APP_ID&mt=8"; NSURL *url = [[NSURL alloc] initWithString:buyString]; [[UIApplication sharedApplication] openURL:url]; [url release];
这篇关于如何去应用商店(从应用程序内)编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文