title: How to navigate to a new Screen when using SideBarController in Xamarin.iOS
body: <p>I have an application with a lot of screens, let say HomePage, Section Screen and Detail Page, Category Screen.</p>
  
  <p>I use a NavigationController to Navigate from HomePage to Section Screen.</p>
  
  <p>In the SectionScreen I have used a SideBarController component (<a href="https://components.xamarin.com/view/sidebarnavigation" rel="nofollow noreferrer">https://components.xamarin.com/view/sidebarnavigation</a>) to implement a navigation drawer or a flyout menu. </p>
  
  <p>The problem is how to navigate from <code>Section Screen</code> to <code>Detail Page</code> or to <code>Category Screen</code>. I need to make this kind of navigation from <code>MenuController</code> or <code>ContentController</code>.</p>
  
  <p>I don't want to just change the <code>contentView</code>. I want to push another <code>UIViewController</code>.</p>
  
  <p>I have used the usual one: </p>
  
  <pre><code>this.NavigationController.PushViewController( new UIViewControllerExample(), true);
  </code></pre>
  
  <p>but there are some problems:</p>
  
  <ul>
  <li>In the details page I can't access the <code>NavigationBar</code></li>
  <li><p>When I press <code>back</code>, the app crashes with an error:</p>
  
  <p>Cant add self to subview</p></li>
  </ul>
  
  <p>This is how to it should look like.
  <a href="https://i.stack.imgur.com/dLvp5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dLvp5.jpg" alt="enter image description here"></a></p>
  
  <p>This is the problem. The first image display what happen when i use the above code, </p>
  
  <p><a href="https://i.stack.imgur.com/zyqQY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zyqQY.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8Uo7z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Uo7z.jpg" alt="enter image description here"></a></p>
  
  <p>Any idea how to solve this.</p>