title: Capture MKMapView screenshot different in iOS 5 and iOS 6?
body: <p>I would like to get screenshot of mapview. So i used following code. This code works perfectly in ipad and simulator but not on ipod. The iPad has iOS 6.0 and my xcode is 4.2.1 and the iPod has iOS 5.0.</p>
  
  <pre><code>- (UIImage*) renderToImage
  {
      UIGraphicsBeginImageContext(mapView.frame.size);
      [mapView.layer renderInContext:UIGraphicsGetCurrentContext()];
      UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext(); 
      return viewImage;
  }
  </code></pre>
  
  <p>The problem is, i have got same image in iPad, iPod ans simulator but not names corresponding manual screen capture and programatic screen capture.The names are very big in iPod, at the same time names are normal in iPad and simulator and also some names are invisible in iPod.That is the my problem.</p>
  
  <p>The following images are:</p>
  
  <p>This image belongs to iPod manual screen capture.</p>
  
  <p><img src="https://i.stack.imgur.com/E7Ezf.png" alt="enter image description here"></p>
  
  <p>This image belongs to iPod programatic screen capture.</p>
  
  <p><img src="https://i.stack.imgur.com/Td7YC.png" alt="enter image description here"></p>
  
  <p>I don't know where the problem is. Please help me anyone.</p>