添加子视图问题
我在向导航控制器添加子视图时遇到以下问题。我什至尝试在添加子视图之前和之后修改框架的 Y 位置,但没有效果。
还尝试在子视图上放置状态栏,但没有任何效果。
非常感谢。
I am having the following problem while adding a subview to navigation controller. I even have tried to modify the Y location of frame before and after adding the subview but not effective.
Also tried to put a status bar on the child view but nothing is working.
Many Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您遇到全屏 IB 复选框或以编程方式设置全屏属性的问题。难道你不打电话给viewController.setStatusBarVisible = NO之类的东西吗?检查一下,我也遇到了同样的问题。
编辑:这些问题/答案有帮助吗?
iPhone - ModalViewController 未提升到屏幕顶部
iPhone - 在全屏模态视图上显示导航栏让它下降,顶部有透明空间
You have a problem with a fullScreen IB checkbox or a fullscreen property set programmaticaly. Don't you call somewhere something like viewController.setStatusBarVisible = NO. Check it, I had the same problem.
EDIT : Does those questions / anwers help ?
iPhone - ModalViewController not raising to top of the screen
iPhone - displaying NavigationBar on a fullscreen modalView makes it go down with transparent space on top
非常感谢大家。我不知道出了什么问题,但现在我不再添加子视图,而是使用 PushViewController 并将视图控制器推送到父导航控制器。这解决了这个问题。
再次感谢大家。
Thank you very much everyone of you. I don't know what was the issue but instead of adding subview now I am using pushViewController and I am pushing the viewcontroller to the parent navigation controller. This solved the issue.
Thank you all of you once again.