Reputation:
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 ?
Upvotes: 1
Views: 3501
Reputation: 281
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"]];
}
or if you open any URL that has "itms://
" and only on the device
Upvotes: 8
Reputation: 90117
Read Technical Q&A QA1629. They also offer a method how you can add your iTunes Affiliate link without redirecting from your app to safari to the appstore
Upvotes: 7
Reputation: 7506
Use the function openURL from UIApplication with the iTunes URL link of your App.
Upvotes: 1