iOS开发笔记--调用打开AppStore显示自己的App

 

    • - (void)openAppaleShop  
    • {  
    •     NSString *appleID = @"949346638";  
    •       
    •     if ([UIDevice isIOS7]) {  
    •         NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@",appleID];  
    •         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];  
    •     } else {  
    •         NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appleID];  
    •         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];  
    •     }  
    • }  
posted @ 2016-08-25 15:27  foolish_love  阅读(186)  评论(0)    收藏  举报