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?
Clean your project and build again.