iOS - UINavigationController, Hide navigationBar

前端 未结 5 1531
醉话见心
醉话见心 2021-02-20 15:52

I have a minor trouble hiding the navigationBar for my UINavigationController

I have added:

self.navigation!.navigationBar.hidden = true
<
5条回答
  •  借酒劲吻你
    2021-02-20 16:05

    I know the question has already been answered but I was having the same issue when hiding a navigation bar then using a UIScrollView in the view.

    I fixed it programmatically using:

    self.edgesForExtendedLayout = UIRectEdgeNone;
    

    Or in interface builder by deselecting all of these:

提交回复
热议问题