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
7ac414d4
Commit
7ac414d4
authored
May 04, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to use app ID, improve container view switching.
parent
ec9ab07a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
4 deletions
+43
-4
AccountViewController.swift
...ustomers/Sample App Customers/AccountViewController.swift
+5
-2
AppDelegate.swift
...mple App Customers/Sample App Customers/AppDelegate.swift
+1
-1
Main.storyboard
...Customers/Sample App Customers/Base.lproj/Main.storyboard
+37
-1
No files found.
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/AccountViewController.swift
View file @
7ac414d4
...
...
@@ -28,6 +28,9 @@ import UIKit
class
AccountViewController
:
UIViewController
{
@IBOutlet
weak
var
loginContainerView
:
UIView
!
@IBOutlet
weak
var
signupContainerView
:
UIView
!
private
var
loginViewController
:
LoginViewController
!
private
var
signupViewController
:
SignupViewController
!
...
...
@@ -64,8 +67,8 @@ class AccountViewController: UIViewController {
// MARK: - Updates -
//
private
func
updateSelectedIndex
(
index
:
Int
)
{
self
.
login
ViewController
.
v
iew
.
hidden
=
(
index
!=
0
)
self
.
signup
ViewController
.
v
iew
.
hidden
=
(
index
==
0
)
self
.
login
ContainerV
iew
.
hidden
=
(
index
!=
0
)
self
.
signup
ContainerV
iew
.
hidden
=
(
index
==
0
)
}
// ----------------------------------
...
...
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/AppDelegate.swift
View file @
7ac414d4
...
...
@@ -47,7 +47,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
//
func
application
(
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
NSObject
:
AnyObject
]?)
->
Bool
{
self
.
client
=
BUYClient
(
shopDomain
:
self
.
shopDomain
,
apiKey
:
self
.
apiKey
,
channelId
:
self
.
channed
ID
)
self
.
client
=
BUYClient
(
shopDomain
:
self
.
shopDomain
,
apiKey
:
self
.
apiKey
,
appId
:
self
.
app
ID
)
return
true
}
...
...
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/Base.lproj/Main.storyboard
View file @
7ac414d4
...
...
@@ -75,6 +75,10 @@
</connections>
</segmentedControl>
</navigationItem>
<connections>
<outlet
property=
"loginContainerView"
destination=
"KZD-y5-2e3"
id=
"g1r-NW-TfQ"
/>
<outlet
property=
"signupContainerView"
destination=
"ZAC-pf-9Yj"
id=
"GGw-ff-lV9"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"twZ-kb-vHr"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
...
...
@@ -265,12 +269,44 @@
</variation>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"WZx-ob-4he"
>
<rect
key=
"frame"
x=
"0.0"
y=
"123"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"WZx-ob-4he"
id=
"m2b-6M-mwt"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Password"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kkr-5N-h4x"
>
<rect
key=
"frame"
x=
"15"
y=
"12"
width=
"570"
height=
"20"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<constraints>
<constraint
firstAttribute=
"bottomMargin"
secondItem=
"kkr-5N-h4x"
secondAttribute=
"bottom"
id=
"4LO-ro-Pti"
/>
<constraint
firstItem=
"kkr-5N-h4x"
firstAttribute=
"leading"
secondItem=
"m2b-6M-mwt"
secondAttribute=
"leadingMargin"
constant=
"15"
id=
"FWQ-QU-fMw"
/>
<constraint
firstItem=
"kkr-5N-h4x"
firstAttribute=
"top"
secondItem=
"m2b-6M-mwt"
secondAttribute=
"topMargin"
id=
"Hrj-zw-AbS"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"kkr-5N-h4x"
secondAttribute=
"trailing"
constant=
"15"
id=
"Pu2-VK-LWY"
/>
<constraint
firstItem=
"kkr-5N-h4x"
firstAttribute=
"leading"
secondItem=
"m2b-6M-mwt"
secondAttribute=
"leading"
constant=
"15"
id=
"ePW-gB-2WY"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"kkr-5N-h4x"
secondAttribute=
"trailing"
constant=
"15"
id=
"r6Z-0o-7LZ"
/>
<constraint
firstItem=
"kkr-5N-h4x"
firstAttribute=
"centerY"
secondItem=
"m2b-6M-mwt"
secondAttribute=
"centerY"
id=
"uTV-eb-CEs"
/>
</constraints>
<variation
key=
"default"
>
<mask
key=
"constraints"
>
<exclude
reference=
"4LO-ro-Pti"
/>
<exclude
reference=
"r6Z-0o-7LZ"
/>
<exclude
reference=
"FWQ-QU-fMw"
/>
<exclude
reference=
"Hrj-zw-AbS"
/>
</mask>
</variation>
</tableViewCellContentView>
</tableViewCell>
</cells>
</tableViewSection>
<tableViewSection
id=
"XYD-jG-PaH"
>
<cells>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
textLabel=
"0w1-5E-3cV"
style=
"IBUITableViewCellStyleDefault"
id=
"81f-nB-Sh2"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
159
"
width=
"600"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
203
"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"81f-nB-Sh2"
id=
"Mls-GG-NsX"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43"
/>
...
...
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