跳转到应用详情界面:
UIApplication *app = [UIApplication sharedApplication];
NSString *str = [NSString stringWithFormat:@”在商店复制下来的链接”];
NSURL *url = [NSURL URLWithString:str];
if ([app canOpenURL:url]) {
[app openURL:url];
}
跳转到应用评论页
UIApplication *app = [UIApplication sharedApplication];
NSString *str = [NSString stringWithFormat:
@”itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d”,
你的应用id];
NSURL *url = [NSURL URLWithString:str];
if ([app canOpenURL:url]) {
[app openURL:url];
}
本文介绍了如何在iOS应用中实现应用详情界面及应用评论页面的跳转功能, 使用Objective-C代码通过iTunes链接实现这一目标。
6958

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



