title: How to keep a class alive like in Tabbed apps
body: <p>I currently have an app like this that has the drawer interface but when I go into another view everything resets in the current view and never stays the same ?</p>
  
  <p>This is how my code looks like when I switch views.</p>
  
  <pre><code>           [self.slidingViewController anchorTopViewOffScreenTo:ECRight animations:nil onComplete:^{
              CGRect frame = self.slidingViewController.topViewController.view.frame;
              self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"homeChannel"];
              self.slidingViewController.topViewController.view.frame = frame;
              [self.slidingViewController resetTopView];
              [tableView deselectRowAtIndexPath:indexPath animated:YES]; }];
  </code></pre>
  
  <p>So my question is "How would I keep the view alive while going into another view such as the <a href="http://www.deviantpoint.com/image.axd?picture=PBImport/17-image_6_1a526dc8.png" rel="nofollow noreferrer">tabbed apps</a>  "</p>
  
  <p>Such as my tableView, when I go to another view and back to the original one it resets.</p>
  
  <p><img src="https://i.stack.imgur.com/BCBpO.png" alt="My image"></p>