From ef429379a400f738cdab56dd307c3e8fd7d50e30 Mon Sep 17 00:00:00 2001 From: kevinzhow Date: Tue, 31 Mar 2015 00:42:28 +0800 Subject: [PATCH] Change title font color --- Yep/ViewControllers/Profile/ProfileViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Yep/ViewControllers/Profile/ProfileViewController.swift b/Yep/ViewControllers/Profile/ProfileViewController.swift index 9ebebcad..b59a4df0 100644 --- a/Yep/ViewControllers/Profile/ProfileViewController.swift +++ b/Yep/ViewControllers/Profile/ProfileViewController.swift @@ -74,6 +74,14 @@ class ProfileViewController: UIViewController { self.navigationController?.navigationBar.barStyle = UIBarStyle.BlackTranslucent self.navigationController?.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default) + let textAttributes = [ + NSForegroundColorAttributeName: UIColor.whiteColor(), + NSFontAttributeName: UIFont(name: "HelveticaNeue-CondensedBlack", size: 20)! + ] + + self.navigationController?.navigationBar.titleTextAttributes = textAttributes + + NSNotificationCenter.defaultCenter().addObserver(self, selector: "changeProfileImage", name: YepChangeProfilePhotoNotification, object: nil) }