A
A
artursk2016-01-23 14:57:23
iOS
artursk, 2016-01-23 14:57:23

How to change background color of statusBar?

How to change background color of statusBar? I tried through the view, it does not work

let statusBarView: UIView = UIView(frame: CGRectMake(0.0, 0.0, UIScreen.mainScreen().bounds.width, 20.0))
        statusBarView.backgroundColor = UIColor.yellowColor()
        view.addSubview(statusBarView)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question