2011-01-25 38 views

回答

4

這應該總是有效(所有OS):

http://itunes.apple.com/app/idYOUR_PAID_APP_ID 

代碼段(你可以複製&粘貼):

#define YOUR_PAID_APP_ID 553834731 // replace with your paid app ID 

static NSString *const iOSAppStoreURLFormat = @"http://itunes.apple.com/app/id%d"; // General link to the App Store 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat: iOSAppStoreURLFormat,YOUR_PAID_APP_ID ]]]; // Would open the right link 
+0

壞的解決方案! iPhone首先打開Safari,然後是AppStore。 – Dmitry 2011-12-09 12:41:02

相關問題