iPhone X的顶部条形高度是多少? [英] What is the top bar height of iPhone X?

查看:1060
本文介绍了iPhone X的顶部条形高度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道iPhone X顶部条的确切高度。
您能否提及iPhone X的状态栏和导航栏高度。
请帮帮我。



解决方案

< blockquote>

然而,iPhone X上的显示器比4.7显示器 145pt 高,导致内容的额外垂直空间大约增加20%。


有关更多信息,您可以从Apple获得HIG for iphone X



状态栏高度



之前的20pt,现在44pt


由于显示屏顶部的传感器,新的状态栏分为两部分。如果您的UI正在使用该空间做一些特殊的事情(之前是20pt高,现在是44pt),因为它在iPhone X上会更高。确保它可以动态地改变高度。一个好处是,如果用户打电话或使用导航应用程序,高度将不会改变,以前在其他iPhone上就是这种情况。




肖像



导航栏高度正常 88 和大标题时间 140




  • 标准标题 - 44pt(状态栏为88pt)

  • 大标题 - 140pt

  • 底栏 - 34pt



景观




  • 标准标题 - 32pt

  • 底栏 - 21pt


I would like to know exact height of top bar of iPhone X. Could you please mention the status bar and navigation bar height of iPhone X. Please help me.

解决方案

The display on iPhone X, however, is 145pt taller than a 4.7" display, resulting in roughly 20% additional vertical space for content.

for more information you get HIG for iphone X from apple documents and detail description in here1 and here2

status bar height

previously 20pt, now 44pt

Because of the sensors on top of the display, the new status bar is split in 2 parts. If your UI is doing something special with that space (previously 20pt high, now 44pt), because it will be taller on the iPhone X. Make sure that it can be dynamically changed in height. A great thing is that the height won’t be changed if a user makes a phone call or is using a navigation app, which was previously the case on other iPhones.

portrait

Navigation bar height as normal 88 and large title time 140

  • Standard title - 44pt (88pt with Status Bar)
  • Large title - 140pt
  • bottom bar - 34pt

Landscape

  • Standard title - 32pt
  • bottom bar - 21pt

这篇关于iPhone X的顶部条形高度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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