I have this error :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CustomLogin.LogoutViewController logoutButton:]: unrecognized selector sent to instance 0x7feaf340ea70'
I have 3 VCs, of which two are ok, howeverI think that the third one - logoutviewcontroller has an error. I connect the LogOutViewController's orange UIButton to the Login View Controller and call the segue LogOut. There is the code in the LogIn View Controller:
@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()
}
What is wrong here? Thank you!