2010-03-22 47 views

回答

13
 
NSString *[email protected]"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]; 

+0

這是無效的 – ahmad 2014-01-31 10:01:16

0

呼叫

[[UIApplication sharedApplication] openURL:@"APP_STORE_URL_OF_EXISTING_APP"] 

這將自動退出你的應用程序並啓動App Store應用。

相關問題