Storyboard - Hiding top bar of navigation controller programmatically

前端 未结 8 735
失恋的感觉
失恋的感觉 2020-12-13 14:11

I\'m using a storyboard and I\'m trying to hide a top bar of my main navigation controller when a certain button is pressed (or function is called). I know I have to initial

8条回答
  •  天涯浪人
    2020-12-13 14:36

    I faced same problem, this worked for me

    navController.navigationBar.hidden = YES;

提交回复
热议问题