Xamarin iOS: navigation bar not showing after pushing view
<p>I have created all of my UI in code (since I use <a href="https://components.xamarin.com/view/flyoutnavigation" rel="nofollow noreferrer">Flyout Navigation</a> which doesn't seem to work with storyboards). I have a UINavigationController called <code>MainController</code>, and a series of view controllers. When I start up the app with the root controller, it displays the navigation bar just fine.</p>

<p>When I programmatically create a new ViewController called <code>ArticleDisplay</code>, I create and push it as such (within MainController):</p>

<pre><code>public void Open_Article(Post post)
{
    ArticleDisplay vw = new ArticleDisplay(this);
    vw.SetPost(post); // to set the iOS

    this.PushViewController(vw, true);
}
</code></pre>

<p>When I run the app and display the ArticleDisplay controller, I don't get a navigation bar (<a href="https://i.stack.imgur.com/Km6Vt.png" rel="nofollow noreferrer">as you can see in this image</a>), although the main view controller has a navigation bar. Trying to do things like <code>this.SetNavigationBarHidden(false,true)</code> do nothing.</p>

<p>What do I do to get the navigation bar to display? I'm sure I'm screwing it up somewhere. I need it so I can allow the user to get back to the controller they were in before.</p>