Commit 5bc7179c by Dima Bart

Add logout functionality.

parent f1be323a
......@@ -290,7 +290,11 @@
</constraints>
</view>
<navigationItem key="navigationItem" title="Orders" id="QJf-qx-qvw">
<barButtonItem key="leftBarButtonItem" title="Logout" id="Iio-Wf-I5q"/>
<barButtonItem key="leftBarButtonItem" title="Logout" id="Iio-Wf-I5q">
<connections>
<action selector="logoutAction:" destination="gsn-tk-U20" id="7BT-DV-iXS"/>
</connections>
</barButtonItem>
</navigationItem>
<connections>
<outlet property="tableView" destination="0Fn-mj-l5t" id="ZFj-eI-hKE"/>
......
......@@ -59,6 +59,13 @@ class OrdersViewController: UIViewController {
}
}
}
// ----------------------------------
// MARK: - UI Actions -
//
@IBAction func logoutAction(sender: AnyObject) {
self.navigationController?.popViewControllerAnimated(true)
}
}
// ----------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment