iOS小狮子橙红科技有限公司

iOS 应用件跳转到appstore相关界面

2016-02-25  本文已影响193人  沉默学飞翔

跳转到应用详情界面:

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];

}

上一篇 下一篇

猜你喜欢

热点阅读