title: Reloading TableView Data after pop From DetailViewController
body: <p>How can I reload my tableView data after I click back button/pop from my <code>detailViewController</code> (using <code>UINavigationController</code> and push)? I tried reloading my tableView in <code>viewDidAppear</code> but nothing has changed. Below I attached my storyboard so that you guys can have a idea about what my problem is. When I click save, I want all the data to be automatically reloaded to my tableView when I go back to my <code>UITableViewController</code>. How can I achieve this?</p>
  
  <p><a href="http://i.stack.imgur.com/i1YyV.png" rel="nofollow">http://i.stack.imgur.com/i1YyV.png</a></p>
  
  <p>Below is my code for saving new data to coreData using saveButton. </p>
  
  <pre><code>- (IBAction)saveButton:(id)sender {
      CoreDataAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
      NSManagedObjectContext *context = [appDelegate managedObjectContext];
      NSManagedObject *newContact = [NSEntityDescription insertNewObjectForEntityForName:@"Contact" inManagedObjectContext:context];
  
      NSString *name = self.nameTextfield.text;
      NSString *phoneNumber = self.phoneTextfield.text;
  
      CoreDataTableViewController *cdtvc = [[CoreDataTableViewController alloc] init];
  
      [newContact setValue:name forKey:@"name"];
      [cdtvc.name addObject:name];
      [newContact setValue:phoneNumber forKey:@"phone"];
      [cdtvc.phone addObject:phoneNumber];
  
      NSError *error;
     [context save:&amp;error];
     [cdtvc.tableView reloadData];
  }
  </code></pre>