soft-eng-practicum / inClassChatApp

A cross platform chat application for classrooms!
0 stars 0 forks source link

Force logout #21

Open arifsundrani opened 9 years ago

arifsundrani commented 9 years ago

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?