self.bgView.backgroundColor = UIColor.init(patternImage: #imageLiteral(resourceName: "navigation_bar_img"));
基于viewController修改当前UIStausBarStyle方法
override var preferredStatusBarStyle: UIStatusBarStyle{get { return.lightContent}}
self.bgView.backgroundColor = UIColor.init(patternImage: #imageLiteral(resourceName: "navigation_bar_img"));
override var preferredStatusBarStyle: UIStatusBarStyle{get { return.lightContent}}