我touchesBegan
在初始登录 ViewController 中有关闭键盘并取消自定义 AlertView。虽然它最初有效,但touchesBegan
在我注销后没有被调用performSegueWithIdentifier
。
//to resign keyboard
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
println("touchesBegan");
self.view.endEditing(true)
loginAlert.hideView()
signupAlert.hideView()
}
//Logout
self.performSegueWithIdentifier("gotoLoginSegue", sender: self);