How to set bottom safe area to XIB in iOS?

蹲街弑〆低调 提交于 2019-12-05 12:24:44

Solution in simple words: Remove bottom constraint with superview and attach it (bottom constraint) with bottom (anchor) layout constraint of 'Safe Area'

Follow these steps to find solution:

  1. Enable 'Safe Area Layout', if not enabled.
  2. Remove 'Bottom constraint' if it shows you connection with with Super view and re-attach with safe layout bottom anchor. OR Double click on bottom constraint and edit from super view to SafeArea bottom anchor

Look at this snapshot:

Here is result:


Update:
Here is same result with XIB also. I don't see any problem with XIB here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!