title: UIAlertController only in specific time
body: <p>Is it possible to show alert <code>UIAlertController</code> only in specific time without click the <code>UIButton</code>? For example, when user run my game 3rd time. But if he click cancel then he'll never see it anymore.</p>
  
  <pre><code>import UIKit
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  
      var window: UIWindow?
  
  
      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool {
          let opensCount = UserDefaults.standard.integer(forKey: "open_count") + 1
          UserDefaults.standard.set(opensCount, forKey: "open_count")
          UserDefaults.standard.synchronize()
  
          return true
      }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import UIKit
  import SpriteKit
  import GameplayKit
  
  class GameViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          if UserDefaults.standard.integer(forKey: "open_count") == 3 {
              self.showAlert()
          }
  
  ...
      }
  </code></pre>