-2

I'm writing iOS swift project, today i updated Xcode 6 from beta4 to beta6. It compiles well, but when i press button, it prints "lol" in console and crashes. There is my code:

@IBOutlet var emailField : UITextField!

@IBAction func signInPressed () {
println("lol")
let email = emailField.text as NSString
println("lol")
}

Can you help me?

mix3d
  • 4,122
  • 2
  • 25
  • 47
lenden
  • 800
  • 2
  • 14
  • 38

1 Answers1

3

Clean your project and build again.

Gary Makin
  • 3,109
  • 1
  • 19
  • 27