App Store Review Button

后端 未结 6 2099
无人及你
无人及你 2020-12-12 17:56

How can we make the \"please leave us a review in the app store\" functional PopUp in an iOS app?

6条回答
  •  有刺的猬
    2020-12-12 18:19

    There is code missing if you want user to review your app after 20 times. The missing part is

    - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
    {
        if (buttonIndex == 0)
        {
            // user hit dismiss so don't do anything
        }
        else if (buttonIndex == 1) //review the app
        {
    
            [[UIApplication sharedApplication] 
         openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=409954448"]]; 
    
        }
    }
    

提交回复
热议问题