iOS - UINavigationController, Hide navigationBar

前端 未结 5 1655
醉话见心
醉话见心 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:13

    Updated :

    Just add this in you ViewDidLoad method

    self.automaticallyAdjustsScrollViewInsets = NO;
    

提交回复
热议问题