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
20a2bf68
Unverified
Commit
20a2bf68
authored
Nov 22, 2017
by
Zach Knox
Browse files
The button looks better now
parent
c1196b6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Base.lproj/Main.storyboard
View file @
20a2bf68
...
...
@@ -390,7 +390,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EFr-sK-Oua"
>
<rect
key=
"frame"
x=
"0.0"
y=
"168"
width=
"375"
height=
"4
36
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"168"
width=
"375"
height=
"4
28
"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"LocationDetailCell"
textLabel=
"ZON-E8-nep"
detailTextLabel=
"mCu-om-Ac6"
style=
"IBUITableViewCellStyleValue1"
id=
"7ju-Kj-S2Y"
>
...
...
@@ -423,13 +423,16 @@
<outlet
property=
"delegate"
destination=
"40z-Tl-yYT"
id=
"Etz-9k-CqV"
/>
</connections>
</tableView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wYH-df-pb5"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wYH-df-pb5"
>
<rect
key=
"frame"
x=
"16"
y=
"604"
width=
"343"
height=
"51"
/>
<color
key=
"backgroundColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"
43
"
id=
"L6Q-1f-agu"
/>
<constraint
firstAttribute=
"height"
constant=
"
51
"
id=
"L6Q-1f-agu"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"semibold"
pointSize=
"19"
/>
<state
key=
"normal"
title=
"Button"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</state>
<connections>
<action
selector=
"setFavButton:"
destination=
"40z-Tl-yYT"
eventType=
"touchUpInside"
id=
"bOT-kV-nhh"
/>
</connections>
...
...
WhatsOpen/WhatsOpen/Views/FacilityDetailViewController.swift
View file @
20a2bf68
...
...
@@ -81,9 +81,9 @@ class FacilityDetailViewController: UIViewController, UITableViewDelegate, UITab
}
setFavoriteButtonText
()
favoritesButton
.
background
Color
=
UIColor
.
green
favoritesButton
.
titleLabel
?
.
textColor
=
UIColor
.
white
favoritesButton
.
layer
.
cornerRadius
=
8
favoritesButton
.
tint
Color
=
UIColor
.
white
favoritesButton
.
backgroundColor
=
UIColor
(
red
:
0.00
,
green
:
0.40
,
blue
:
0.20
,
alpha
:
1.0
)
favoritesButton
.
layer
.
cornerRadius
=
10
if
#available(iOS 11.0, *)
{
...
...
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