在通话过程中如何定位绿色条下面的视图? [英] How to position view below green bar during phone call?

查看:103
本文介绍了在通话过程中如何定位绿色条下面的视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在通话过程中将我的检视画面显示在绿色列的下方?

How do I make my view appear below the green bar during a phone call? right now my app is being partially covered by the green bar during a phone call.

推荐答案

如果您使用的是Interface Builder,请确保您的自动调整大小的掩码设置,以便它调整视图的大小,而不是让他们坐在同一位置。您可以使用模拟器中硬件下的切换呼叫状态栏选项进行测试。

If you're using Interface Builder, make sure your autoresize masks are set so that it resizes the views instead of just having them sit there in the same position. You can use the Toggle In-Call Status Bar option under Hardware in the Simulator to test it.

如果您不使用IB,您可以在代码中设置自动调整大小的掩码。

If you're not using IB, you can set up the autoresize masks in code.

如果您不使用数据视图,则需要在获取相应通知时调整图形大小。

If you're not using views, you'll need to resize your graphics when you get the appropriate notifications.

这篇关于在通话过程中如何定位绿色条下面的视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆