title: Swift 2: Instance Member cannot be used on type "View Controller"
body: <p>Im new to swift and I'm experimenting with classes and methods! I have been looking all over google and stackoverflow to find an answer! I have read multiple posts with the same problem but they still don't help me! I have written swift code for a bigger app but decided to write a small portion so I get the same idea. Im trying to update a UILabel's text with a method inside a class when a certain button is pressed. Im trying to change the text by <code>MyLabel.text = "text"</code> but its giving me the error of 'Instance member cannot be used on type "view controller"' Please help me find whats wrong with it and explain it! Thank you so much! Here is my code bellow:</p>
  
  <pre><code>    class ViewController: UIViewController {
  
  class Door {
  
      var DoorLocked = false
  
      func lockDoor() {
          DoorLocked = true
          MyLabel.text = "The door is locked!"
      }
  
      func unlockDoor() {
          DoorLocked = false
          MyLabel.text = "The door is unlocked!"
      }
  
      init() {
          MyLabel.text = "This is a door!"
      }
  }
  
  var DoorStatus = Door()
  
  @IBOutlet weak var MyLabel: UILabel!
  
  @IBAction func LockButton(sender: AnyObject) {
      DoorStatus.lockDoor()
  }
  
  @IBAction func UnlockButton(sender: AnyObject) {
      DoorStatus.unlockDoor()
  }
  
  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>
  
  <p>}</p>