|
|
@@ -257,11 +257,17 @@
|
|
|
meBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
|
|
UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView: meBtn];
|
|
|
self.navigationItem.leftBarButtonItem = leftItem;
|
|
|
+
|
|
|
+ [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17.0]}];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
#pragma mark --- viewAction
|
|
|
-(void)viewWillAppear:(BOOL)animated
|
|
|
{
|
|
|
+
|
|
|
+ [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@""] forBarMetrics: UIBarMetricsDefault];
|
|
|
+
|
|
|
self.navigationController.navigationBar.subviews[0].alpha = 0.0f;
|
|
|
|
|
|
[self.navigationController setNeedsNavigationBackground:0.0f];
|
|
|
@@ -269,6 +275,17 @@
|
|
|
|
|
|
-(void)viewWillDisappear:(BOOL)animated
|
|
|
{
|
|
|
+
|
|
|
+ if (statusXLately) {
|
|
|
+
|
|
|
+ [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"U_newNarbgX"] forBarMetrics:UIBarMetricsDefault];
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"U_newNarbg"] forBarMetrics:UIBarMetricsDefault];
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
self.navigationController.navigationBar.subviews[0].alpha = 1.0f;
|
|
|
|
|
|
[self.navigationController setNeedsNavigationBackground:1.0f];
|