title: Not able to update TableCelView in UITableViewController when Navigating back from a UIViewController
body: <p>I have a navigation view controller which is linked with a <code>UITableViewController</code>.
  In the table View Controller I have static cells. I have the Right Label format of Table View Cells. I will navigate to a <code>UIViewController</code> when clicked on the <code>UITableViewCell</code> then when I navigate back to my <code>UITableViewController</code>, I would like to update the Detail Label on my <code>UITableViewCell</code>. </p>
  
  <p>I am able to pass the value from th<code>enter code here</code>e <code>UIViewController</code> to the <code>UITableViewcontroller</code>. I have verified this using <code>NSLog</code>. But I am not able to update the detail label in the cell.</p>
  
  <p>I used <code>-(void) tableView:(UITableView *) tableView didDeselectRowAtIndexPath</code> but this does not help me because, the table view cell will be updated only when I click on another table view cell. I want this update to happen automatically when I navigate back to <code>UITableViewController</code></p>
  
  <p>Please check the following link
  <a href="http://www.icodeblog.com/wp-content/uploads/2011/10/navigation_interface.jpeg" rel="nofollow">http://www.icodeblog.com/wp-content/uploads/2011/10/navigation_interface.jpeg</a>  </p>
  
  <p>i want something like the above image</p>
  
  <p>How can this be done.</p>
  
  <p>Updated for Code</p>
  
  <pre><code>@interface designTableViewController ()
  
  @end
  
  @implementation designTableViewController
  {
      glimmpseliteAppDelegate *appDelegate;
  }
  
  - (id)initWithStyle:(UITableViewStyle)style
  {
      self = [super initWithStyle:style];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
  
      appDelegate = [[UIApplication sharedApplication]delegate];
      [super viewDidLoad];
  }
  
  - (void)viewDidUnload
  {
      [super viewDidUnload];
  }
  
  -(void)viewWillAppear:(BOOL)animated
  {
  
  }
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  
  #pragma mark - Table view data source
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  
      return 8;
  }
  
  #pragma mark - Table view delegate
  
  -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      if(indexPath.row == 1)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designSolvingForViewController"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          tb.detailTextLabel.text = appDelegate.solvingFor;
  
  
      }
      if(indexPath.row == 2)
      {
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designTypeIErrorRate"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.typeIError;
      }
      if(indexPath.row == 3)
      {
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designNumberOfGroups"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.numberOfGroups;
      }
  
      if(indexPath.row == 4)
      {
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designRelativeGroupSize"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.relativeGroupSize;
      }
  
      if(indexPath.row == 5)
      {
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designSmallestGroupSize"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.smallestGroupSize;
      }
  
      if(indexPath.row == 6)
      {
          UIViewController *uiViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"designMeansAndVariance"];
          [self.navigationController pushViewController:uiViewController animated:YES];
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.meansAndVariance;
      }
  }
  
  - (void) tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      if(indexPath.row == 1)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          tb.detailTextLabel.text = appDelegate.solvingFor;
      }
  
      if(indexPath.row == 2)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          //tb.textLabel.text =@"Sample";
          tb.detailTextLabel.text = appDelegate.typeIError;
      }
  
      if(indexPath.row == 3)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          //tb.textLabel.text =@"Sample";
          tb.detailTextLabel.text = appDelegate.numberOfGroups;
      }
  
  
      if(indexPath.row == 4)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          //tb.textLabel.text =@"Sample";
          tb.detailTextLabel.text = appDelegate.relativeGroupSize;
      }
  
      if(indexPath.row == 5)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          //tb.textLabel.text =@"Sample";
          tb.detailTextLabel.text = appDelegate.smallestGroupSize;
      }
  
      if(indexPath.row == 6)
      {
          UITableViewCell *tb = [tableView cellForRowAtIndexPath:indexPath];
          //tb.textLabel.text =@"Sample";
          tb.detailTextLabel.text = appDelegate.meansAndVariance;
      }
  }
  
  @end
  </code></pre>
  
  <p>The first table cell is just a cell which has a button. I have a push UIViewController for that button.</p>