iOS開發中,應用內直接跳轉到Appstore

//1.進入appstore中指定的應用
NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d",myAppID ];   
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
// 其中myAppID爲itunesconnect中的應用程序id //2.進入首頁 NSString *str = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",m_myAppID ]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

//三、進入appstory評分 

NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa     /wa/viewContentsUserReviews?type=Purple+Software&id=%d", APPID/*此處的appID是在iTunes Connect建立應用程序時生成的Apple ID*/ ];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
相關文章
相關標籤/搜索