title: ModalViewController to retain value
body: <p>From the modalViewController (UniversitiesViewController *), I've tried to set a variable in the rootViewController with no luck.  In my tableview:didSelectRowAtIndexPath: method I use the following code to set the rootViewController (MapsViewController *) selectedIndex property:</p>
  
  <pre><code>MapsViewController *mapsView = (MapsViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"MapsView"];
  mapsView.selectedIndex = [NSNumber numberWithInt:indexPath.row];
  
  [self dismissModalViewControllerAnimated:YES];
  </code></pre>
  
  <p>When I print the value of self.selectedIndex in the MapViewController it is always 0, which is not the value selected.</p>
  
  <p>Thanks in advance for your help.</p>