修改状态栏背景颜色

extension UIApplication {

        var statusBarView: UIView? {

        return value(forKey: "statusBar") as? UIView

    }

}

UIApplication.shared.statusBarView?.backgroundColor = .red

你可能感兴趣的:(修改状态栏背景颜色)