UIView截断状态栏直到自动旋转 [英] UIView Clipped By Statusbar until Autorotate

查看:220
本文介绍了UIView截断状态栏直到自动旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个多视图应用程序,它使用多个控制器来显示和控制视图。我所遇到的问题是,当模拟器最初加载视图时,标题被屏幕顶部的条部分覆盖,并且底座上的工具条不接触屏幕的底部。我使用界面构建器大小属性来控制iphone旋转时的视图,并且它完美地运行。在旋转之后,所有这些都在横向和纵向模式下都完美无瑕,但问题在于旋转发生前的初始载荷。
您的想法非常感激。
Tony

Ive created a multiview application that uses multiple controllers to display and control views. The problem Im having is, when the simulator initially loads the view the header is partially covered by the bar at top of screen and the tool bar at the base is not touching the base of the screen. I used the Interface builder size attributes to control the view when the iphone rotates and it works perfectly. All smaps into place perfectly both in landscape and portrait mode AFTER a rotation but the problem is with the initial load before a rotation occurs. Your thoughts a much appreciated. Tony

推荐答案

我遇到了状态,导航和标签栏被剪切的问题。我通过使用Interface Builder中的模拟指标功能修复了大部分问题。这样你在IB中的布局就会比你实际得到的更准确。

I've had issues with views being clipped by status, nav, and tab bars. I've fixed most of them by using the Simulated Metrics feature in Interface Builder. That way what your laying out in IB is a lot more accurate to what your actually going to get.

这篇关于UIView截断状态栏直到自动旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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