title: Updating a integer as a label in swift
body: <p>I want to change the number value of a label by pressing a button. I used to get errors saying you can't put a number in a string, so, I did string(variable). It now displays the basic number, 1, but when I click it, it doesn't update!</p>
  
  <p>Here is how I set up the variable:
  First, I set up the button, to IBAction. Here is the code inside of it:</p>
  
  <pre><code>@IBOutlet weak var NumberOfExploits: UILabel!
  @IBAction func exploiter(sender: AnyObject) {
      var hacks = 0
      hacks += 1
      NumberOfExploits.text = String(hacks)   
  }
  </code></pre>
  
  <p>Can someone help be find out how to get it to change numbers? </p>