Presenting a Modal View Controller hides the Navigation Bar

后端 未结 9 1025
灰色年华
灰色年华 2021-01-04 00:58

I have a navigation based app with a navigation bar, but there are a few instances where instead of pushing a view controller onto the stack, I need to present the view cont

9条回答
  •  滥情空心
    2021-01-04 01:40

    I think I've seen this behavior when presenting a view controller on the wrong VC. Are you calling presentModalViewController on the navigation controller or the individual VC?

    Try calling it from the navigationController if you aren't already.

    [self.navigationController presentModalViewController:myVC animated:YES];
    

提交回复
热议问题