///设置statusBar颜色
func setStatusBarColor(color:UIColor,style:UIStatusBarStyle){
let statusBarWindow:UIWindow = UIApplication.shared.value(forKey: "statusBarWindow") as! UIWindow
let statusView:UIView = statusBarWindow.value(forKey: "statusBar") as! UIView
statusView.backgroundColor = color
UIApplication.shared.statusBarStyle = style
}