Navigation Controller Transparent Bar Style is not working

前端 未结 12 782
情书的邮戳
情书的邮戳 2020-12-31 13:57

I am using a navigation controller, and I have the style set to :

navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

But wh

12条回答
  •  轮回少年
    2020-12-31 14:14

    Change the Extend Edges options in child viewControllers

    As for example, in xcode editor, go to your first viewcontroller child and unset the options:

    Extend Edges;
        Under Top Bars;
        Under Bottom Bars;
        Under Opaque Bars;
    

    This way your child ViewController will not layout starting below the status bar of the navigation controller, neither the tabbar or the toolbars

    hope it may help anyone

提交回复
热议问题