1. Add a field to info.plist: view controller -base status bar is set to NO
2、
UIView *statusBarView=[[UIViewalloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 20)];
statusBarView.backgroundColor = color_31343f;;
[self.viewaddSubview:statusBarView];
[UIApplicationsharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
self.navBar.barTintColor = color_31343f;