Presenting a Modal View Controller hides the Navigation Bar

后端 未结 9 930
灰色年华
灰色年华 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:26

    Emphatic and Devin –

    As I started reading through the Apple docs to get familiar with the problem, I noticed that the method you're using, presentModalViewController:animated:, appears to be deprecated in favor of presentViewController:animated:completion:. Perhaps you should try to use that method instead.

    For your convenience, take a look for yourself:

    presentModalViewController:animated: reference

    I'll try to put together a quick test program to see whether what I've said above is actually true. But give it a shot – maybe it'll help!

提交回复
热议问题