1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #import "NavigationController.h"
- @interface NavigationController ()
- @end
- @implementation NavigationController
- - (void)viewDidLoad {
- [super viewDidLoad];
- }
- + (void)load {
-
- UINavigationBar *navBar = [UINavigationBar appearance];
-
- [navBar setBackgroundImage:[UIImage imageWithBgColor:[UIColor whiteColor] alpha:1.0] forBarMetrics:UIBarMetricsDefault];
- [navBar setShadowImage:[UIImage imageWithColor:[UIColor whiteColor]]];
- [navBar setTitleTextAttributes:
- @{NSFontAttributeName:[UIFont systemFontOfSize:16],
- NSForegroundColorAttributeName:[UIColor blackColor]}];
- navBar.tintColor = [UIColor blackColor];
- UIBarButtonItem *item = [UIBarButtonItem appearance];
-
- NSMutableDictionary *md = [NSMutableDictionary dictionary];
- md[NSForegroundColorAttributeName] = [UIColor whiteColor];
- md[NSFontAttributeName] = [UIFont systemFontOfSize:16];
- [item setTitleTextAttributes:md forState:UIControlStateNormal];
-
- NSMutableDictionary *higMd = [NSMutableDictionary dictionary];
- higMd[NSForegroundColorAttributeName] = [UIColor whiteColor];
- higMd[NSFontAttributeName] = [UIFont systemFontOfSize:16];
- [item setTitleTextAttributes:higMd forState:UIControlStateHighlighted];
-
- NSMutableDictionary *disMd = [NSMutableDictionary dictionary];
- disMd[NSForegroundColorAttributeName] = [UIColor whiteColor];
- disMd[NSFontAttributeName] = [UIFont systemFontOfSize:16];
- [item setTitleTextAttributes:disMd forState:UIControlStateDisabled];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
-
- }
- @end
|