KexAri
KexAri

Reputation: 3977

Opening app store page to rate my app

pretty new to this but I know I can use itms-apps://itunes.apple.com/app/idAPP_ID as a link to my app. I'm not sure how to use this in my code though. How do I add this link to a button?

I understand this is also for iOS 7. Is there an older style link I have to use to get it working for versions prior?

Upvotes: 2

Views: 319

Answers (1)

Daniel Storm
Daniel Storm

Reputation: 18898

Use openURL to open the URL when a button is tapped. UIApplication Class Reference.

-(IBAction)appStoreButton:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id653287635"]];
}

Upvotes: 3

Related Questions