How do I programmatically add a view right under the navigation bar?

前端 未结 6 961
轻奢々
轻奢々 2021-02-04 11:25

I\'m trying to add a view to a UINavigationController with its top aligned with the navigation bar\'s bottom.

I tried using constraints by adding the follo

6条回答
  •  轮回少年
    2021-02-04 11:54

    You're not calculating the height of the status bar with the navigation bar. In total they are 64, 44 nav bar and 20 for the status bar

提交回复
热议问题