如何点击按钮跳转到Appstore的评论页面

2025-04-15 05:56:22
推荐回答(1个)
回答1:

1、NSString *appstoreUrlString = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", m_appleID ]; NSURL * url = [NSURL URLWithString:appstoreUrlString]; if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication]openURL:url]; } else { NSLog(@"can not open"); }2、btn_save.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View view) { Intent intent = new Intent(当前的Activity.this, 要跳转的Activity.class); startActivity(intent); } });其中btn_save就是button按钮