iphone - 通话中状态栏 HIG 指南问题

标签 iphone objective-c ios hig

我有一个 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/

相关文章:

ios - 键盘不会在应用程序中关闭

ios - 如何从电话号码字符串中删除几个数字 - Swift

iphone - iOS开发者证书

ios - UITableView 复选标记有白色背景

ios - 如何为同一 View Controller 的不同设备方向加载不同的 XIB?

ios - 获取 UIBarButtonItem 当前图像名称

objective-c - cocoa 非原子特性

iphone - Objective C 中的属性到底是什么?属性和实例变量有什么区别?

iphone - 当 iPhone 进入待机模式时,iPhone 应用程序会发生什么情况?

iphone - 没有根元素 ios 的 Json