【发布时间】:2015-06-24 13:09:29
【问题描述】:
它给出:
信号 SIGABRT
日志中的另一个错误说:
libc++abi.dylib:以 NSException 类型的未捕获异常终止
@IBAction func loginok(sender: AnyObject) {
if loginTextField?.text != "monal" && passwordTextField?.text != "gosai"
{
warningLable?.text = "Invalid Credentials"
loginTextField?.text = ""
passwordTextField?.text=""
}
else
{
let View2 = self.storyboard!.instantiateViewControllerWithIdentifier("View2") as! ViewController2
self.navigationController!.pushViewController(View2, animated: true)
}
}
【问题讨论】:
标签: ios swift cocoa-touch uiviewcontroller