title: Swift - 1 screen to another screen
body: <p>I have set you my UI for both screens and I don't want to do the connect the screens in main.storyboard. I want to click a button and it will take to  that screen, I will do the fade animations and stuff like that later. I just need to know how to go to one screen to the next screen when I press a button. I can give an example of what I am talking about down below.</p>
  
  <p>Example: In flappy bird before you start the game it tell you to tap on the screen, then when you tap the text fades out. That is what I want to do with my game. I am not sure if that is another screen or if that is 1 view that makes certain labels disappear once the screen is tapped.</p>
  
  <p><strong>My MainMenuViewController:</strong></p>
  
  <pre><code>import UIKit
  import SpriteKit
  
  
  class MainMenuViewController: UIViewController {
  
  
      var mainMenuScene: MainMenuScene!
  
  
  
      @IBOutlet weak var playButton: UIButton!
  
  
      @IBAction func playButtonPressed(sender: AnyObject) {
          mainMenuScene.playButtonPressed(sender)
      }
  
  
      @IBAction func playerButtonPressed(sender: AnyObject) {
          println("player")
      }
  
      @IBAction func LeaderboardButtonPressed(sender: AnyObject) {
          println("leaderboard")
      }
  
      @IBAction func shopButtonPressed(sender: AnyObject) {
          println("shop")
      }
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
  
          //set up game screens
  
          // Configure the view
  
          // store a ref
  
          // Create and configure the scene
          mainMenuScene?.scaleMode = .AspectFill
  
          // Present the scene
      }
  
  
  
      override func shouldAutorotate() -&gt; Bool {
          return true
      }
  
      override func supportedInterfaceOrientations() -&gt; Int {
          if UIDevice.currentDevice().userInterfaceIdiom == .Phone {
              return Int(UIInterfaceOrientationMask.AllButUpsideDown.rawValue)
          } else {
              return Int(UIInterfaceOrientationMask.All.rawValue)
          }
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Release any cached data, images, etc that aren't in use.
      }
  
      override func prefersStatusBarHidden() -&gt; Bool {
          return true
      }
  }
  </code></pre>
  
  <p><strong>My MainMenuScene:</strong></p>
  
  <pre><code>import Foundation
  import UIKit
  import SpriteKit
  
  class MainMenuScene: SKScene {
  
      var movingGround: PPMovingGround!
      var square1: PPSquare1!
      var wallGen: PPWallGen!
  
      var isStarted = false
  
      var playButton: UIButton!
  
  
  
      func playButtonPressed(sender: AnyObject) {
          start()
  
      }
  
  
      func start() {
          isStarted = true
  
          square1.stop()
          movingGround.start()
          wallGen.startGenWallsEvery(1)
      }
  
  
      override func didMoveToView(view: SKView) {
  
      }
  
  
      override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
  
  
      }
  
      override func update(currentTime: CFTimeInterval) {
  
      }
  
  }
  </code></pre>
  
  <p>I want to connect this code to my GameScene File. How do I do it?</p>