iOS 7: How to force navigation bar of UINavigationController to be laid out as if status bar is showing even when status bar is hidden

断了今生、忘了曾经 提交于 2019-12-25 02:03:02

问题


Is there a way to force the navigation bar of a UINavigationController to be laid out as if the status bar is showing even when the status bar is hidden? My motivation is to prevent the navigation bar for shifting when a navigation controller presents a view controller that returns YES for prefersStatusBarHidden. An example of this is when you look at an attached image in an email in the Gmail app.

来源:https://stackoverflow.com/questions/22586361/ios-7-how-to-force-navigation-bar-of-uinavigationcontroller-to-be-laid-out-as-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!