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
48f0992f
Commit
48f0992f
authored
Feb 09, 2017
by
Zach Knox
Browse files
titleView in the navigation bar getting a little better
parent
ada59202
Changes
7
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Assets.xcassets/Navigation Bar TitleView.imageset/Contents.json
View file @
48f0992f
...
...
@@ -2,7 +2,18 @@
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"WhatsOpenHeader.pdf"
"filename"
:
"header.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"header@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"header@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
...
...
WhatsOpen/WhatsOpen/Assets.xcassets/Navigation Bar TitleView.imageset/WhatsOpenHeader.pdf
deleted
100644 → 0
View file @
ada59202
File deleted
WhatsOpen/WhatsOpen/Assets.xcassets/Navigation Bar TitleView.imageset/header.png
0 → 100644
View file @
48f0992f
1.38 KB
WhatsOpen/WhatsOpen/Assets.xcassets/Navigation Bar TitleView.imageset/header@2x.png
0 → 100644
View file @
48f0992f
2.7 KB
WhatsOpen/WhatsOpen/Assets.xcassets/Navigation Bar TitleView.imageset/header@3x.png
0 → 100644
View file @
48f0992f
4.15 KB
WhatsOpen/WhatsOpen/Base.lproj/Main.storyboard
View file @
48f0992f
...
...
@@ -15,7 +15,7 @@
<objects>
<tableViewController
id=
"qgd-YS-8BQ"
customClass=
"MainTableViewController"
customModule=
"WhatsOpen"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<tableView
key=
"view"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"89"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"kaY-rU-2In"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
0.0
"
width=
"375"
height=
"6
67
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
64
"
width=
"375"
height=
"6
03
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
...
...
@@ -89,7 +89,7 @@
</navigationItem>
<simulatedStatusBarMetrics
key=
"simulatedStatusBarMetrics"
statusBarStyle=
"lightContent"
/>
<connections>
<outlet
property=
"mainNavigationBar"
destination=
"DJn-4Y-j3Y"
id=
"
oia-mn-bB0
"
/>
<outlet
property=
"mainNavigationBar"
destination=
"DJn-4Y-j3Y"
id=
"
Mju-vB-oFP
"
/>
</connections>
</tableViewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"d2o-5D-WNk"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
...
...
@@ -102,10 +102,10 @@
<navigationController
automaticallyAdjustsScrollViewInsets=
"NO"
id=
"DGD-49-9Ue"
sceneMemberID=
"viewController"
>
<toolbarItems/>
<simulatedStatusBarMetrics
key=
"simulatedStatusBarMetrics"
statusBarStyle=
"lightContent"
/>
<navigationBar
key=
"navigationBar"
contentMode=
"scaleToFill"
barStyle=
"black
"
id=
"ulx-sh-XJ1"
>
<navigationBar
key=
"navigationBar"
contentMode=
"scaleToFill"
misplaced=
"YES"
barStyle=
"black"
translucent=
"NO
"
id=
"ulx-sh-XJ1"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<color
key=
"barTintColor"
red=
"0.0
39215686274509803"
green=
"0.396078431372549"
blue=
"0.20784313725490194
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"barTintColor"
red=
"0.0
"
green=
"0.40000000000000002"
blue=
"0.20000000000000001
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<textAttributes
key=
"titleTextAttributes"
>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</textAttributes>
...
...
WhatsOpen/WhatsOpen/MainTableViewController.swift
View file @
48f0992f
...
...
@@ -15,8 +15,7 @@ class MainTableViewController: UITableViewController {
@IBOutlet
var
mainNavigationBar
:
UINavigationItem
!
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
mainNavigationBar
.
titleView
=
UIImageView
(
image
:
UIImage
(
named
:
"Navigation Bar TitleView"
))
mainNavigationBar
.
titleView
=
UIImageView
(
image
:
#
imageLiteral
(
resourceName
:
"Navigation Bar TitleView"
))
}
override
func
viewDidLoad
()
{
...
...
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