Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import StoreKit
  2. import UIKit
  3.  
  4. class MyViewController: UIViewController{
  5.  
  6.   override func viewDidLoad() {
  7.     super.viewDidLoad()
  8.    
  9.     //Check if current device is running iOS 10.3
  10.     if #available(iOS 10.3, *){
  11.       //For testing purposes we call it in `viewDidload`,
  12.       //Only call this in your app when it makes sense
  13.         SKStoreReviewController.requestReview()
  14.       }else{
  15.       //fallback to old ways of asking reviews
  16.     }
  17.   }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top