1.跳轉到app頁面
找到應用程式的描述連結,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
然後將 http:// 替換為 itms:// 或者 itms-apps://:
itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8 itms-apps:// itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8 然後開啟這個連結地址:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps ://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8"]];
2. 跳轉到app的評價頁面
找到應用程式的ID ,比如 131456789
//去app頁面評價-(void) gotoAppStorePageRaisal:(NSString *) nsAppId{ NSString * nsStringToOpen = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",nsAppId ]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];}
比如調用 [self gotoAppStorePageRaisal:@"131456789"];