title: How to add "Rate 5 stars to get coins/reward"?
body: <p>How do I add a rating alert view inside my app for the user to choose how many stars?</p>
  
  <p>Then I want to give the user some coins/reward if he or she rated with 5 stars.</p>
  
  <p>What I have tried:</p>
  
  <pre><code>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];
  </code></pre>
  
  <p>But it only shows a blank screen with a cancel button. Also giving me the error: </p>
  
  <blockquote>
    <p>Error Domain=SKErrorDomain Code=5 "Cannot connect to iTunes Store"
    UserInfo=0xa71cd90 {NSLocalizedDescription=Cannot connect to iTunes
    Store}</p>
  </blockquote>
  
  <p>EDIT:</p>
  
  <p>What I wanted was something like this: <img src="https://i.stack.imgur.com/B4SHH.png" alt="enter image description here"></p>