I have a ViewController
which is inside a UINavigationcontroller
, but the navigationBar is hidden. When I run the app on iOS 7, the status bar shows on top of my view. Is there a way to avoid this?
I don't want to write any OS specific code.
I tried setting View controller-based status bar appearance
to NO
, but it did not fix the issue.