UIToolbar goes under status bar in iOS7

Viewed 2855

I have a UIView and I have a UIToolbar and UIWebView. I want to show toolbar at top of UIView and after that the rest of page covered with webView. But toolbar goes under status bar like this enter image description here

How can I correct it in iOS7.

3 Answers

The only correct solution in 2k17 is to attach your toolbar/navigationBar to leading/trailing of your superview, top to topLayoutGuideBottom and to implement positionForBar:. This will produce correct result on all devices.

Related