(void)gotoAppStore{
NSString *str = [NSString stringWithFormat:@”itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@”, kAppId];
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:str]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}
else
{
// [AppCommon showMessage:@”暂时不支持页面跳转!”];
DLog(@”bu zhichi “);
}
}
本文介绍了一个简单的iOS应用内跳转到App Store的方法,通过构造特定格式的URL来实现。此功能可用于引导用户查看应用评价或进行应用内推广。
670

被折叠的 条评论
为什么被折叠?



