title: App crashes when trying to resign keyboard
body: <p>Since I updated to the latest Xcode 6 beta, I have been having issues with closing the keyboard. My app is crashing each time I try to close the keyboard, even though I have used the same code for ages and it used to work fine.</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>@IBAction func viewTapped(sender : AnyObject) {
      //Closes keyboard when user touches screen.
  
      transactionDateInput.resignFirstResponder()
      transactionNameInput.resignFirstResponder()
      textField.resignFirstResponder()
      notesField.resignFirstResponder()
  
      UIView.animateWithDuration(1.5, animations: {
          self.valueEnter.alpha = 0
          self.dateEnter.alpha = 0
          self.notesDone.alpha = 0
          })
  }
  </code></pre>
  
  <p>Someone suggested changing it to something like this:</p>
  
  <pre><code>if (transactionDateInput.isFirstResponder() == true){
       transactionDateInput.resignFirstResponder()
  }
  </code></pre>
  
  <p>but that makes no difference. Anyone have any suggestions? Here is the error:</p>
  
  <pre><code>AffordIt[4445:1334424] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AffordIt.SecondViewController textFieldShouldReturn:]: unrecognized selector sent to instance 0x7fb169666880'
  </code></pre>