iOS程序内进入 App Store 打分的代码

来源:互联网 发布:租房php源码 编辑:程序博客网 时间:2024/05/16 12:58

 

http://blog.csdn.net/justinjing0612/article/details/8218400

  1. -(void)goToAppStore  
  2. {      
  3.     NSString *str = [NSString stringWithFormat:  
  4.                      @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",547203890];  
  5.     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];     
  6. }  

 

  1. -(void)goToAppStore  
  2. {      
  3.     NSString *str = [NSString stringWithFormat:  
  4.                      @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",appID]; //appID 解释如下  
  5.     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];  
  6.       
  7. }  

 

原创粉丝点击