Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-ios
Commits
befac84a
Commit
befac84a
authored
May 08, 2017
by
Zach Knox
Browse files
The stack view constraints still don't work
parent
5053ba1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Base.lproj/Main.storyboard
View file @
befac84a
...
...
@@ -180,12 +180,12 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"327"
height=
"128"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Location"
textAlignment=
"center"
lineBreakMode=
"wordWrap"
minimumScaleFactor=
"0.59999999999999998"
adjustsFontForContentSizeCategory=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6QR-8Q-n4s"
>
<rect
key=
"frame"
x=
"11
8
"
y=
"0.0"
width=
"9
2
"
height=
"76"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Location"
textAlignment=
"center"
lineBreakMode=
"wordWrap"
numberOfLines=
"2"
minimumScaleFactor=
"0.59999999999999998"
adjustsFontForContentSizeCategory=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6QR-8Q-n4s"
>
<rect
key=
"frame"
x=
"11
4.5
"
y=
"0.0"
width=
"9
9.5
"
height=
"76"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"76"
id=
"0fb-6g-ynv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"
s
ystem"
pointSize=
"24"
/>
<fontDescription
key=
"fontDescription"
type=
"
boldS
ystem"
pointSize=
"24"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
...
...
@@ -195,7 +195,7 @@
<constraints>
<constraint
firstAttribute=
"height"
constant=
"28"
id=
"ZVT-gM-BCd"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"semibold"
pointSize=
"17"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
...
...
@@ -343,7 +343,7 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"iGy-3K-QIj"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"
84
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"
71.5
"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Panera Bread"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
minimumScaleFactor=
"0.69999999999999996"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"W3q-KN-OAm"
>
<rect
key=
"frame"
x=
"8"
y=
"8"
width=
"311"
height=
"21"
/>
...
...
@@ -383,54 +383,34 @@
</constraints>
</view>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
distribution=
"fillEqually"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VWF-jR-r2D"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
84
"
width=
"375"
height=
"
259.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
71.5
"
width=
"375"
height=
"
33
"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GGl-WZ-wRY"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"187.5"
height=
"259.5"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2mp-o9-UkW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"32"
width=
"188"
height=
"63"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleHeadline"
/>
<state
key=
"normal"
title=
"Order Now"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"orderButton:"
destination=
"bKW-v9-6dS"
eventType=
"touchUpInside"
id=
"S2E-Om-CvV"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstItem=
"2mp-o9-UkW"
firstAttribute=
"centerY"
secondItem=
"GGl-WZ-wRY"
secondAttribute=
"centerY"
id=
"5c6-ob-eaM"
/>
<constraint
firstItem=
"2mp-o9-UkW"
firstAttribute=
"centerX"
secondItem=
"GGl-WZ-wRY"
secondAttribute=
"centerX"
id=
"Bxb-SP-oOt"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"AGF-0Z-FrZ"
>
<rect
key=
"frame"
x=
"187.5"
y=
"0.0"
width=
"187.5"
height=
"259.5"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cNr-Ql-6yV"
>
<rect
key=
"frame"
x=
"-1"
y=
"32"
width=
"188"
height=
"63"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleHeadline"
/>
<state
key=
"normal"
title=
"Get Notifications"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"notifyButton:"
destination=
"bKW-v9-6dS"
eventType=
"touchUpInside"
id=
"nFH-gH-fGC"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstItem=
"cNr-Ql-6yV"
firstAttribute=
"centerY"
secondItem=
"AGF-0Z-FrZ"
secondAttribute=
"centerY"
id=
"mNv-v9-Pkx"
/>
<constraint
firstItem=
"cNr-Ql-6yV"
firstAttribute=
"centerX"
secondItem=
"AGF-0Z-FrZ"
secondAttribute=
"centerX"
id=
"xBG-6z-edO"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2mp-o9-UkW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"187.5"
height=
"33"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleHeadline"
/>
<state
key=
"normal"
title=
"Order Now"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"orderButton:"
destination=
"bKW-v9-6dS"
eventType=
"touchUpInside"
id=
"S2E-Om-CvV"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cNr-Ql-6yV"
>
<rect
key=
"frame"
x=
"187.5"
y=
"0.0"
width=
"187.5"
height=
"33"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleHeadline"
/>
<state
key=
"normal"
title=
"Get Notifications"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"notifyButton:"
destination=
"bKW-v9-6dS"
eventType=
"touchUpInside"
id=
"nFH-gH-fGC"
/>
</connections>
</button>
</subviews>
</stackView>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"44"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"N1f-XR-xpn"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
343
.5"
width=
"375"
height=
"
259
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
104
.5"
width=
"375"
height=
"
498
.5"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"LocationDetailCell"
textLabel=
"dvE-Be-8y6"
detailTextLabel=
"fSJ-Gc-VIw"
style=
"IBUITableViewCellStyleValue1"
id=
"bCL-Iy-li3"
>
...
...
WhatsOpen/WhatsOpen/SRCTSimpleCollectionViewCell.swift
View file @
befac84a
...
...
@@ -16,6 +16,8 @@ class SRCTSimpleCollectionViewCell: UICollectionViewCell {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
layer
.
cornerRadius
=
10
// Initialization code
}
}
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