forsythetony / CollegeComparison

An iOS application built for Team-Based Mobile Device Application Development (INFOTC 4500) in fall semester of 2013.
Other
1 stars 0 forks source link

Navigation Bar Title #31

Closed maurahoward closed 10 years ago

maurahoward commented 10 years ago

The title of each screen on the navigation bar (Results, Filter, Details) needs to be in white in Avenir.

forsythetony commented 10 years ago

This is currently how the font for all titles throughout the entire app get set.

[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                          [UIColor whiteColor], NSForegroundColorAttributeName,
                                                          [UIFont fontWithName:@"Avenir-Book" size:24.0], NSFontAttributeName,
                                                          nil]];

Which ends up looking like this

image

JMV2112 commented 10 years ago

We can make a global method to call this within every view controller right? If so, that would be the easiest way to set these attributes and have it take in one parameter which would be the title. What do you think?

forsythetony commented 10 years ago

This is set within the app delegate and applied to all navbars in the application. You might be able to override it within a particular view controller though.

forsythetony commented 10 years ago

Can we close this issue?