我有一个 View ,底部有一个 ImageView 但是当我模拟调用时,它会部分隐藏它并位于屏幕下方。 我对此不确定,但根据 ios HIG 指南,我的应用程序应该相应地处理这个问题。看到这个..
Make sure your UI can handle the double-high status bar. The double-high status bar appears during events such as in-progress phone calls, audio recording, and tethering. In unprepared applications the extra height of this bar can cause layout problems. For example, the UI can become pushed down or covered. In a multitasking environment, it’s especially important to be able to handle the double-high status bar properly because there are likely to be more applications that can cause it to appear. You can trigger the double-high status bar during testing to help you find and correct any views that don’t handle it well. (To learn how to do this using iOS Simulator, see “Manipulating the Hardware” in Tools Workflow Guide for iOS.)
我的问题是我应该在这里做什么以及我应该如何处理这个..?
最佳答案
您应该监听 UIApplicationDelegate 的这两个回调:
application:willChangeStatusBarFrame:
application:didChangeStatusBarFrame:
并相应地调整主视图的大小。
关于iphone - 通话中状态栏 HIG 指南问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12400974/