title: Button with multiple functions (swift, Xcode 6)
body: <p>H, I would like to have one button that has multiple functions. I am making a choose your own adventure app, fyi. I would like to have a button that is the "Begin game" button, that, when clicked changes not only text(I have that worked out) but also changes function. I want it to keep advancing the story. The "story" is a label that is in the top half of the screen, that I would like to change when the button is pressed. I can have it change once, but I would like it to change when the button is pressed after the first time. How would I go about doing this? By the way I am a newcomer to programming especially swift.</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
      @IBOutlet weak var Message: UILabel!
      @IBOutlet weak var RevealButton: UIButton!
      @IBAction func RButtonTap(sender: AnyObject) {
          Message?.hidden = false
          Message?.text = "Welcome! This is going to be an adventure!"
          RevealButton?.setTitle("Wake up?" , forState:UIControlState.Normal )
          func WakeUp(sender: AnyObject) {
              RevealButton?.setTitle("Walk Outside" , forState:UIControlState.Normal )  
          }       
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  }
  </code></pre>