code_junkie

How Can I Launch The Appstore App Directly from my Application

Nov 11th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. - (IBAction)gotoReviews:(id)sender
  2. {
  3. NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
  4. str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str];
  5. str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str];
  6.  
  7. // Here is the app id from itunesconnect
  8. str = [NSString stringWithFormat:@"%@289382458", str];
  9.  
  10. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
  11. }
  12.  
  13. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/appname"]];
  14.  
  15. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/developername"]];
Add Comment
Please, Sign In to add comment