title: How to close the SideBar menu manually when using SWRevealViewController ( ios)
body: <p>I am trying to implement a <code>SideBar</code> / slide out menu using the <code>SWRevealViewController</code>. I have a  bunch of menus. One of the menu is to get app version info. So When I click on the cell, An <code>AlertView</code> displays the version number and on pressing the OK button I would like to close/hide the <code>SideBar</code> menu and return to the pervious view(front controller). For example, if I am on log in controller and I press the settings button to reveal the side bar and I choose version menu from <code>TableView</code> cells, a pop will open displaying version# and when I press Ok, the <code>SideBar</code> should close and return to the login screen without me having to tap the settings button again or swiping to return. How can I return to the login screen when I press OK on the alert view.</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
      // the user clicked OK
      if (buttonIndex == 0) {
  
        //close the side bar and return to front view controller
      }
  }
  </code></pre>