title: How to stop the view controller reloading the data each time it is visited?
body: <p>I have a <code>UIViewController</code> with a table of data and also a map that loads the data with annotations.</p>
  
  <p>I would like to have the data only load first time the user visits the view and then only reload if they call a method via an update button. At the moment the view reloads the data each visit. I'm calling the <code>requestData</code> for the <code>UITableView</code> and a <code>load map</code>method I have in the <code>viewDidLoad</code> method.</p>
  
  <p>I'm sending the user to the view with the following code. Perhaps it forces the viewDidLoad method each time:</p>
  
  <pre><code>-(IBAction)pushHomeButton{
  
  // front view controller
  
  [self.homeBtn setTitleColor:customColorGrey forState:UIControlStateHighlighted];
  
  [MBProgressHUD showHUDAddedTo:self.view animated:YES];
  
  dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.0001 * NSEC_PER_SEC);
  dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
  
      FrontViewController *myNewUIViewController = [[FrontViewController alloc] init];
      UINavigationController *myNavController = [[UINavigationController alloc] initWithRootViewController:myNewUIViewController];
      [self.revealController setFrontViewController:myNavController];
      // Putting back the front view on focus
      [self.revealController showViewController:self.revealController.frontViewController];
  
  });
  </code></pre>
  
  <p>}</p>
  
  <p>thanks for any help.</p>