enter image description here

(Sorry for the curve drawing) There is a main viewController (right), its navigation has a button, when clicked, a new viewController2 appears on the left side (left) and closes the main viewController not completely, but leaves 10% in width (shaded there). It turns out the imposition of one viewController on another.

  1. How to configure this viewController2 to appear on the left side?
  2. How to make it not change the viewController, and only superimposed on the main?
  • In all my projects where I need to use the side bar, I use the SWRevealViewController library here is the link . Good luck. - Kerim Khasbulatov

1 answer 1

  1. In the comments everything is correctly written, use SWRevealViewController
  2. Use presentViewController it will not unload the initial View Controller from memory. And to go back dismissViewController