代码之家  ›  专栏  ›  技术社区  ›  Kumar Utsav

将空间引导到安全区域,而不是在Xcode 9中说上边距?

  •  0
  • Kumar Utsav  · 技术社区  · 8 年前

    enter image description here

    1 回复  |  直到 8 年前
        1
  •  3
  •   r_19    8 年前

    安全区域

    说的是 the portion of your view that is unobscured by bars and other content Apple - safeAreaLayoutGuide

    我的解释:

    It is the guide for iPhone X for you to avoid the top notch and the bottom part for the swipe gesture that replaced the home button

    为了清晰起见,这里有一个视觉图像: Safe Area - iPhone X