Presenting modal view occasionally hides the navigation bar

后端 未结 4 1714
夕颜
夕颜 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:29

    If there is a navigation controller active, then you should just use

    [self.navigationController pushViewControllerAnimated:how];

    to slide another view controller in, while giving yourself and the user into a consistent user interface complete with 'automatic' back button support.

    Once a navigation controller is in use, presenting a modal view controller should only be done to enlarge the usable area on the screen. And then, you should really use a fancy animation to let the user know that you are stepping away from the "task" or "steps" that the navigation controller was embodying.

提交回复
热议问题