In iOS development, jump directly to Appstore in the app

1. Enter the application specified in the 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]];

        where myAppID is the application id in itunesconnect



2. Enter the homepage

NSString *str = [NSString stringWithFormat: 

                         @"itms-apps://itunes .apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",
                         m_myAppID ];  
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

Guess you like

Origin blog.csdn.net/woruosuifenglang/article/details/51701979
Recommended