How do I add a rating alert view inside my app for the user to choose how many stars?
Then I want to give the user some coins/reward if he or she rated with 5 stars.
What I have tried:
SKStoreProductViewController *productViewController = [[SKStoreProductViewController alloc] init];
[productViewController loadProductWithParameters:@{ SKStoreProductParameterITunesItemIdentifier : @364709193 } // which is the iBook app id
completionBlock:^(BOOL result, NSError *error) {
// giving me an error:
// Error Domain=SKErrorDomain Code=5 "Cannot connect to iTunes Store" UserInfo=0xa71cd90 {NSLocalizedDescription=Cannot connect to iTunes Store}
}];
productViewController.delegate = self;
[self presentViewController:productViewController animated:YES completion:nil];
But it only shows a blank screen with a cancel button. Also giving me the error:
Error Domain=SKErrorDomain Code=5 "Cannot connect to iTunes Store" UserInfo=0xa71cd90 {NSLocalizedDescription=Cannot connect to iTunes Store}
EDIT:
What I wanted was something like this: