我有这个错误:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CustomLogin.LogoutViewController logoutButton:]: unrecognized selector sent to instance 0x7feaf340ea70'
我有 3 个 VC,其中两个没问题,但是我认为第三个 - logoutviewcontroller 有错误。我将 LogOutViewController 的橙色 UIButton 连接到 Login View Controller 并调用 segue LogOut。LogIn 视图控制器中有代码:
@IBAction func loggedOut(sender: AnyObject) {
PFUser.logOut()
self.performSegueWithIdentifier("loggedOut", sender: self)
var alert = UIAlertView(title: "Success", message: "You have logged out", delegate: self, cancelButtonTitle: "OK")
alert.show()
}
这里有什么问题?谢谢!