title: UIBarButtonItems in UINavigationBar are sticking to the borders
body: <p>I'm getting a weird bug since using <a href="https://github.com/HighBay/PageMenu" rel="nofollow noreferrer">PageMenu</a> library. This library adds the ability to swipe between view controllers or change current view controller via <code>UISegmentedControl</code> (on the top).</p>
  
  <p>When the view controller is a <code>UINavigationController</code>, all <code>UIBarButtonItems</code> in the navigation bar are sticking to the borders, like this :</p>
  
  <p><a href="https://i.stack.imgur.com/n8Gx5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n8Gx5.png" alt="enter image description here"></a> </p>
  
  <p>The two items are sticking to the borders of the screen. The same thing happens with Back button after pushing to a view controller.</p>
  
  <p><strong>The bug disappear if I present a view controller modally in the app.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ARsO1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ARsO1.png" alt="enter image description here"></a></p>
  
  <p>Does anybody has a solution for this ? Or at least a workaround to simulate "presenting a view controller modally" at app launch ?</p>