MWPhotoBrowser icon indicating copy to clipboard operation
MWPhotoBrowser copied to clipboard

NavigationBar背景色

Open githubLittleCode opened this issue 8 years ago • 3 comments

从photoBrowser返回上一个控制器的时候,上一个控制器的导航栏上感觉有一层黑色挡住,然后才变成白色。(上一层控制器的导航栏背景色是白色的)

githubLittleCode avatar Oct 27 '16 09:10 githubLittleCode

When pop from MWPhotoBrowser,there is a black view in my navigationBar which will disappear after 1 second.My navagatoinBar's barTintColor is white.How can i fix it!

githubLittleCode avatar Nov 07 '16 07:11 githubLittleCode

在MWPhotoBrower.h 440行的代码 - (void)setNavBarAppearance:方法

  • (void)setNavBarAppearance:(BOOL)animated { [self.navigationController setNavigationBarHidden:NO animated:animated]; UINavigationBar *navBar = self.navigationController.navigationBar; navBar.backgroundColor = [UIColor clearColor]; navBar.barTintColor =[UIColor colorWithRed:26/255.0 green:126/255.0 blue:231/255.0 alpha:1.0]; //蓝色 此处修改 navBar.shadowImage = nil; navBar.translucent = YES; navBar.barStyle = UIBarStyleBlackTranslucent; [navBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault]; [navBar setBackgroundImage:nil forBarMetrics:UIBarMetricsLandscapePhone]; }

lyw1995 avatar Jan 15 '17 07:01 lyw1995

https://github.com/nemissm/MWPhotoBrowser/commit/28e0a51adf94e2151dbc19449a2d6bd2051eebd1

nemissm avatar Nov 15 '17 14:11 nemissm