Presenting modal view occasionally hides the navigation bar

后端 未结 4 1723
夕颜
夕颜 2021-01-01 17:48

I\'ve come across this twice now.

Sometimes using the following line of code:

[self.navigationController presentModalViewController:aViewControll         


        
4条回答
  •  心在旅途
    2021-01-01 18:08

    Maybe this is obvious, but once you're done with the modal view and want to dismiss it, you should do something like this in your modal vc:

    [parentController dismissModalViewControllerAnimated:YES];

    Where parentController is a reference to the vc from where you are presenting the modal view.

提交回复
热议问题