Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
5bc7179c
Commit
5bc7179c
authored
May 05, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logout functionality.
parent
f1be323a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
Main.storyboard
...Customers/Sample App Customers/Base.lproj/Main.storyboard
+5
-1
OrdersViewController.swift
...Customers/Sample App Customers/OrdersViewController.swift
+7
-0
No files found.
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/Base.lproj/Main.storyboard
View file @
5bc7179c
...
...
@@ -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"
/>
...
...
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/OrdersViewController.swift
View file @
5bc7179c
...
...
@@ -59,6 +59,13 @@ class OrdersViewController: UIViewController {
}
}
}
// ----------------------------------
// MARK: - UI Actions -
//
@IBAction
func
logoutAction
(
sender
:
AnyObject
)
{
self
.
navigationController
?
.
popViewControllerAnimated
(
true
)
}
}
// ----------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment