title: push from a side bar menu to another view controller in ios
body: <p>I use in my application, the side bar menu like in facebook, so I have different cells in this menu, what I want is to when click on a cell push me to another view controller. I face a problem here which is: the menu is a table view which I don't have it in storyboard, I use some classes from <a href="https://github.com/mystcolor/JTRevealSidebarDemo" rel="nofollow">this site:github</a></p>
  
  <p>and I've stucked here, in my application I use a storyboard, but this menu is programmed with code, and doesn't have a view in stroyboard,</p>
  
  <p>in the didSelectRowAtIndexPath method: I use like this </p>
  
  <pre><code>    for(int j=0; j&lt; 9 ; j++)
      {
                 if(indexPath.row == j)
                 {
                       DetailsSidebarViewController *essayView = [[DetailsSidebarViewController alloc]  init];
                 essayView.detailItem = [jsonResults objectAtIndex:j];
          NSLog(@"%@=%d",essayView.detailItem,j);
                 }
       }
  </code></pre>
  
  <p>and I create a DetailsSidebarViewController as the new view controller when I push from menu item. in this class, I create a method to configure the view, and just I echo the result:</p>
  
  <pre><code>- (void)configureView
  {
      // Update the user interface for the detail item.
  
      if (self.detailItem) {
  
          NSLog(@" %@ ", self.detailItem);
  
  
      }
  }
  </code></pre>
  
  <p>the result is true like I want, but I want to push to another view controller, in fact nothing is happened when I click on an item into the menu.</p>
  
  <p>How can I create the new view controller in storyboard? if the menu has not a storyboard, and how can I connect them with segues?</p>
  
  <p>In fact, I am blue with it, please help!!</p>