【发布时间】:2011-08-06 08:52:39
【问题描述】:
如何在 iOS 中获取屏幕的尺寸?
目前,我使用:
lCurrentWidth = self.view.frame.size.width;
lCurrentHeight = self.view.frame.size.height;
在viewWillAppear: 和willAnimateRotationToInterfaceOrientation:duration:
我第一次获得整个屏幕尺寸。我第二次得到屏幕减去导航栏。
【问题讨论】:
-
确保你的应用实际上是全屏的并且你不是seeing black bars around it -- this may be your solution if you are
标签: cocoa-touch ios uikit screen