title: UI Tab Bar mapView Refreshing after core data update
body: <p>I have an app with 3 views. I am using a tab bar controller to select the views.</p>
  
  <p>I currently have the map set to zoom to the closest location that includes all the annotations. However, when I update the core data in view one, and then select tab 2 but the annotation pin remains the same. Even if I quit the app the pin color reamins the same (it changes color based on data state). the only way I can get it to update, is to zoom far in, then back out.</p>
  
  <p>code I have tried:</p>
  
  <p><code>[mapView release];</code></p>
  
  <p>and</p>
  
  <p><code>[mapView setNeedsDisplay];</code></p>
  
  <p>and</p>
  
  <p><code>[mapView removeAnnotation:tempAnnotation];</code></p>
  
  <p><code>[mapView addAnnotation:tempAnnotation];</code></p>
  
  <p>and</p>
  
  <p><code>CLLocationCoordinate2D center = [mapView centerCoordinate];</code></p>
  
  <p><code>[mapView setCenterCoordinate:center];</code></p>
  
  <p>I even set the map set flyTo the coordinates 2 times, once zoomed far in, then again at 'normal' zoom level.</p>
  
  <p>Is there a way to refresh the view on <code>didFinishLoading</code>, etc?</p>
  
  <p>Could I be placing one of these code snippets int he wrong place?</p>
  
  <p>I am also releasing the passed data etc</p>
  
  <p>is it just that the tab bar caches the page? is there a way to force a map refresh?</p>
  
  <p>Thanks! (I am kind of a noob so if you can help, please be clear as to the steps to help me understand)</p>
  
  <p>Robert</p>