There is a force logout even though a popup is generated. Maybe move this:
override func shouldPerformSegueWithIdentifier(identifier: String!, sender: AnyObject!) -> Bool {
if (identifier == "logoutSegue") {
let alert = UIAlertView()
alert.delegate = self
alert.title = "Log Out"
alert.message = "Are you sure?"
alert.addButtonWithTitle("Yes")
alert.addButtonWithTitle("No")
alert.show()
}
return true
}
To the following function:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) and then manually call the segue?
There is a force logout even though a popup is generated. Maybe move this: override func shouldPerformSegueWithIdentifier(identifier: String!, sender: AnyObject!) -> Bool { if (identifier == "logoutSegue") { let alert = UIAlertView() alert.delegate = self alert.title = "Log Out" alert.message = "Are you sure?" alert.addButtonWithTitle("Yes") alert.addButtonWithTitle("No") alert.show() } return true }
To the following function:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) and then manually call the segue?