title: is setRegion inconsistent between iOS versions?
body: <p>I developed a game some time ago.
  The game consists on a map of spain, and you have to guess where a city is on that map (I have EEUU and china versions too)
  I developed all of them with iOS 5 base, and using iOS 5 sdk.</p>
  
  <p>Then, 3 weeks ago I updated the spanish game and I had to use the iOS 6 sdk, all seems fine on the simulator and on my ipad 2 (iOS 5.0.1) and iPod touch (iOS 5.1) and released the update.</p>
  
  <p>But when people started downloading or updating the new version, some of them contacted me because the map didn't fit to the screen.</p>
  
  <p>this is the screenshot of how do I see the game on my devices and simulator. (iPad 5.0.1 and simulator with 5.0, 6.0 and 6.1, in both retina and normal mode)
  <img src="https://i.stack.imgur.com/ysfkd.jpg" alt="right"></p>
  
  <p>this is a screenshot of how does it shown on other people devices. (iPad 3 with iOS 6.0 and iPad 2 with iOS 6.0.1 )</p>
  
  <p><img src="https://i.stack.imgur.com/GvehU.jpg" alt="wrong"></p>
  
  <p>This is my code for iPad (as far as I know, on iPhone is working as expected)</p>
  
  <pre><code>CLLocationCoordinate2D centerLocation;
  MKCoordinateRegion region;
  centerLocation.latitude = 39.016740;
  centerLocation.longitude = -5.93504;
  region = MKCoordinateRegionMakeWithDistance(centerLocation, 0, 800000);
  [map setRegion:region];
  </code></pre>
  
  <p>at first I thought it was a retina issue, because the first person who contacted my was using an iPad 3, I fixed the map for iPad retina on monday, but yesterday I got the same message from another user with an iPad 2.</p>
  
  <p>So, am I doing something wrong?
  is setRegion inconsistent between iOS versions?
  how can I test my code if it works fine on simulators?</p>
  
  <p>Can somebody try my code on real devices and tell me if they get the map like the first one or the second one?</p>
  
  <p><strong>EDIT1:</strong>
  Final thoughts after accepting the answer:
  This wasn't an problem between iOS versions, it appears to be a timing problem, the region is different if you set it before the view appears or after.
  It happens in both, iOS 5 and iOS 6.</p>
  
  <p>The only difference between iOS 5 and iOS 6 happens on real devices, if you set the region before the map appears, it stays as it is, but on iOS 6 on the simulator it will remain as it is, but on the real device, it will be displayed as the region setted when the view appears.</p>
  
  <p>So, the solution is setting the region on <code>viewDidAppear</code> and it will be displayed the same way on iOS 5 and iOS 6, on simulators and real devices.</p>
  
  <p><strong>EDIT 2:</strong>
  it seems the 0 on the region had something to do with the problem too, if I use <code>region = MKCoordinateRegionMakeWithDistance(centerLocation, 800000, 800000);</code> the region is the same before and after the view load, at least on the simulator. 
  If I use <code>region = MKCoordinateRegionMakeWithDistance(centerLocation, 0, 800000);</code> the region is different if I use it before the view loads, and appears "zoomed" when I use it later.</p>
  
  <p>I'll wait until I receive my iPad retina with iOS6 to continue testing this issue.</p>