Skip to content

Commit

Permalink
NavigationBar Custom Font
Browse files Browse the repository at this point in the history
  • Loading branch information
MengTo committed Dec 20, 2013
1 parent 068d345 commit c98a5d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Binary file not shown.
15 changes: 15 additions & 0 deletions Ripple/AppDelegate.m
Expand Up @@ -12,6 +12,21 @@ @implementation AppDelegate

- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

// NavigationBar Custom Font
UIFont *navBarFont = [UIFont fontWithName:@"MuseoSans-300" size:18];
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:(0.2471) green:(0.5686) blue:(0.8118) alpha:(1)]];
[[UINavigationBar appearance] setTitleTextAttributes:@{
NSForegroundColorAttributeName: [UIColor colorWithRed:(1) green:(1) blue:(1) alpha:(1)],
NSFontAttributeName:navBarFont
}];

[[UIBarButtonItem appearance] setTitleTextAttributes:@{
NSForegroundColorAttributeName: [UIColor colorWithRed:(1) green:(1) blue:(1) alpha:(1)],
NSFontAttributeName:navBarFont
}
forState:UIControlStateNormal];

return YES;
}

Expand Down

0 comments on commit c98a5d7

Please sign in to comment.