iOS - UINavigationController, Hide navigationBar

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

    You can use hide navigation bar like

    [self.navigationController setNavigationBarHidden:YES];
    

    Hide status bar

    // Hide status bar iOS 7 or later
    - (BOOL)prefersStatusBarHidden
    {
        return YES;
    }
    

提交回复
热议问题