title: checking UIButton Title in Swift
body: <p>I have a button and title of the button is an integer.</p>
  
  <pre><code>correctAnswer = randomNumber1 + randomNumber2
  button1.setTitle("\(correctAnswer)", forState: UIControlState.Normal)
  </code></pre>
  
  <p>I am trying to check the title of the button so convert it to an integer and use it in an if statement, but couldn't make it work. </p>
  
  <pre><code>button1.titleLabel?.text?.toInt()
      if button1.titleLabel == correctAnswer { //most probably I am making a mistake here.
          scoring() } else {
          println(button1.titleLabel?.text!)
  </code></pre>
  
  <p>I am new to swift , I might even have problem with my approach, your help will be appreciated.</p>