Skip to content

Commit

Permalink
fix tint for close button in settings navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
stakes committed Dec 5, 2014
1 parent ac3bd96 commit aa89cbd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Frameless.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
};
0DA5BB3019FAD10F00B2FDD1 = {
CreatedOnToolsVersion = 6.1;
DevelopmentTeam = K2XB837E84;
DevelopmentTeam = F725AN38JF;
TestTargetID = 0DA5BB1819FAD10F00B2FDD1;
};
};
Expand Down
18 changes: 9 additions & 9 deletions Frameless/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<customFonts key="customFonts">
Expand Down Expand Up @@ -30,6 +30,12 @@
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ysq-SM-jXj">
<rect key="frame" x="0.0" y="44" width="600" height="556"/>
<connections>
<segue destination="lCY-Sl-eE7" kind="embed" id="uws-tw-hgM"/>
</connections>
</containerView>
<navigationBar contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B2i-8Y-xZt">
<rect key="frame" x="0.0" y="0.0" width="600" height="44"/>
<constraints>
Expand All @@ -43,20 +49,14 @@
<items>
<navigationItem title="Settings" id="Iuq-fH-csd">
<barButtonItem key="rightBarButtonItem" style="done" systemItem="stop" id="vac-kN-Lmw">
<color key="tintColor" red="0.99989169836044312" green="1" blue="0.99988096952438354" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="tintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<action selector="closeSettingsView:" destination="Ofa-qW-5Lq" id="HlG-94-Mu2"/>
</connections>
</barButtonItem>
</navigationItem>
</items>
</navigationBar>
<containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ysq-SM-jXj">
<rect key="frame" x="0.0" y="44" width="600" height="556"/>
<connections>
<segue destination="lCY-Sl-eE7" kind="embed" id="uws-tw-hgM"/>
</connections>
</containerView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
Expand Down
1 change: 1 addition & 0 deletions Frameless/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SettingsViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
UINavigationBar.appearance().tintColor = UIColor.whiteColor()
var font = UIFont(name: "ClearSans-Bold", size: 18)
var textAttributes = [NSFontAttributeName: font!, NSForegroundColorAttributeName: UIColor.whiteColor()]
UINavigationBar.appearance().titleTextAttributes = textAttributes
Expand Down

0 comments on commit aa89cbd

Please sign in to comment.