user444854
user444854

Reputation:

Link to App Store

What's the link to my app on App Store? I want to input only the App ID.

[[UIApplication sharedApplication]
 openURL:[NSURL URLWithString:@"???"]];

Upvotes: 1

Views: 707

Answers (1)

Michael Kessler
Michael Kessler

Reputation: 14235

NSString *idString = @"380886386";
NSString *countrtyString = @"us";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://itunes.apple.com/%@/app/id%@?mt=8", countrtyString, idString]]];

Upvotes: 2

Related Questions