iPad状态栏的高度是多少?
iPhone上是20像素,那么iPad上状态栏的高度是多少?我认为它是 20 像素,因为我制作的视图大小为 768 * 1004。
It is 20 pixels in iphones, but what is the height of status bar on iPad? I am thinking that it's 20 pixels because the views which I am making are of size 768 * 1004.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你是对的,iPad 上是 20 像素。另请参阅此论坛帖子以获取支持该主张的更多链接。
You are right, 20 pixel on the iPad. See also this forum posting for further links to back that claim up.
在所有配备 Retina 显示屏的设备上,状态栏的高度为 40 像素,在所有较旧的设备上,状态栏的高度为 20 像素。
请注意,这始终相当于 20 个点,因为 1 个点在 Retina 显示屏上相当于 2 个像素,在非 Retina 显示屏上相当于 1 个像素。您可以在 Apple 的 iOS 绘图指南。
The status bar is 40 pixels tall on all devices with Retina display, and 20 pixels tall on all older devices.
Note that this is always equivalent to 20 points, because 1 point is 2 pixels on a Retina display or 1 pixel on a non-Retina display. You can find further information on how points and pixels are handled in Apple's iOS Drawing Guide.
iPad 上也是 20 像素。
It is 20 pixels on the iPad as well.
由于 DPI 的工作原理,无论是否使用 Retina,它始终是 20 像素。上面的答案可能会引起很多混乱,所以我觉得我应该澄清一下。
It's always 20 pixels, regardless of Retina or not due to how DPI works. The above answer could cause a lot of confusion, so I felt I should clear it up.