注意:需要寫在父類里面才可以哦
注意:需要寫在父類里面才可以哦
注意:需要寫在父類里面才可以哦
重要的事說三遍届囚,三遍有梆,三遍。
設(shè)置導(dǎo)航欄的標(biāo)題的字體意系、顏色
self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor],NSFontAttributeName : [UIFont boldSystemFontOfSize:18]};
設(shè)置導(dǎo)航欄的tint顏色
[self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0.2684 green:0.6312 blue:1.0 alpha:1.0]];
設(shè)置導(dǎo)航欄的返回按鈕
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
[item setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]} forState:UIControlStateNormal];
self.navigationItem.backBarButtonItem = item;
更改導(dǎo)航欄的返回圖標(biāo)"<"的顏色
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];