New structure: NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id[your app id]?at=10l6dK"];
Additional note that might help: Here is my solution for introducing a pop-up viewer for iOS apps.
UIAlert, , , appReviewReminder, .
, , , 1 5 , , () :
-(void)appReviewReminder{
UIAlertView *infoAlert;
version = @"1.4.23"
infoAlert = [[UIAlertView alloc]
initWithTitle: nil
message: [NSString stringWithFormat: @"[Your App Version] V%@\nIf you enjoy [Your App Name] take time to give us a review, please press 'App Review'.",version]
delegate: self
cancelButtonTitle: @"Maybe Later"
otherButtonTitles: @"Submit Feedback",
@"App Review",nil];
[infoAlert show];
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex==0)
{
[self dismissViewControllerAnimated:YES completion:nil];
}
else if (buttonIndex==1)
{
NSURL *url = [NSURL URLWithString:@"http://www.yourwebsite.com/contactSupport.html"];
[[UIApplication sharedApplication] openURL:url];
}
else{
NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id[your app id]?at=10l6dK"];
[[UIApplication sharedApplication] openURL:url];
}
}