iOS修改状态栏背景色

        let statusBar = UIApplication.shared.value(forKey: "statusBar") as! UIView
        statusBar.backgroundColor = mainColor

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