I am using Monotouch storyboard for Iphone. I have a navigation controller and through code I am setting the navigationbarhidden to false or true on certain views. I am setting the visibility in ViewWIllAppear method and it is working.
Now I am trying the following code but it has no effect on the navigation bar. I want the navigation bar to fade in or do a transition effect. But it is not working..
this.NavigationController.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve.
Anyone know how to solve this problem?
ModalTransitionStyleis using for other purpose.Imaging you have 2
UIViewController, one of them is visible right now. You want to show modally second one with animation. UsingModalTransitionStyleproperty you could select one of predefined animation. For demo of these animations see that video.UINavigationControllerhaveModalTransitionStyletoo cause it is subclass ofUIViewController. Yet I beleave it’s not corresponding to your desirable effect.If you could use your custom code in
StoryBoard-based project, try to hideUINavigationBarwith animated flag equals totrue: