问题描述
如何根据笔尖的通话状态栏调整视图大小?
How can I make my view resize in response to the in-call status bar from my nib?
我认为它只是设置调整大小属性,但是它们没有启用根UIView。
I figured it would just be setting the resize properties, but they're not enabled for the root UIView.
(我认为我的主要问题是我不知道这是什么叫做;我找不到除了讨论模拟器菜单命令之外,对任何文档中的调用状态栏的任何引用。)
(I think my main problem here is I don't know what any of this is called; I can't find any reference to the in-call status bar in any of the documentation except where it talks about the simulator menu command.)
推荐答案
当你说没有为根UIView启用调整大小属性时你是什么意思?
What do you mean when you say that 'the resize properties aren't enabled for the root UIView'?
通话中状态栏没有任何特别的特殊之处指定,我认为它周围没有任何API或通知。相反,您的视图应该只是设置为正确自动调整大小。
The in-call status bar doesn't have any particular special designation, and I don't think there are any APIs or notifications around it. Instead, your views should simply be set up to autoresize correctly.
尝试在Xcode中创建一个新的基于导航的应用程序,并在RootViewController.xib中研究表视图上的自动调整大小设置。希望您会看到Apple的设置与您在项目中设置的内容之间的差异。
Try creating a new navigation-based app in Xcode and study the autoresize settings on the table view in RootViewController.xib. Hopefully you'll see a delta between what Apple's set and what you've set in your project.
这篇关于调整通话状态栏的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!