UINavigationBar/Status Bar issue in IOS7
Solution 1:
Did you try Apple recommendation about "Preventing the Status Bar from Covering Your Views": https://developer.apple.com/library/content/qa/qa1797/_index.html
And did you have a look at "UIBarPositioningDelegate": https://developer.apple.com/documentation/uikit/uibarpositioningdelegate
Solution 2:
In iOS 7.0 UIViewController
works by default this way. View will be full screen if you are using UIViewController inside UINavigationController
and the navigationBar
is visible.
If navigationBar is visible do following. ==>
self.edgesForExtendedLayout = UIRectEdgeNone
if navigationBar is hidden do following . ==>
Adjust all the UIView
elements by shifting 20 points
If you use Interface builder, you can use iOS6/7 deltas: First, "view as iOS 6.0", then set a delta of "20" to achieve the +20 offset in iOS 7