Grabbing MKMapView screenshot programmatically does not work for iOS6
| Originator: | futuretap | ||
| Number: | rdar://11920682 | Date Originated: | 20-Jul-2012 11:40 AM |
| Status: | Duplicate/11650331/Resolved | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 beta 3 |
| Classification: | Serious Bug | Reproducible: | Always |
Using UIGraphicsBeginImageContextWithOptions, it is possible to grab a screenshot of MKMapView before iOS6. But this method fails in iOS6 because MKMapView in iOS6 is done with OpenGL. Tried different methods to take screenshot for OpenGL instead but it was not working. Approach 2 Apple engineers at the MapKit lab at WWDC about the issue. One of the engineer told me that this is definitely a bug, and I should be able to just use UIGraphicsBeginImageContextWithOptions to take screenshots, and there is no need to use OpenGL methods. Spotted the issue in iOS6b1, continues in iOS6b2 Steps to Reproduce: Use UIGraphicsBeginImageContextWithOptions to grab a screenshot of a MKMapView Expected Results: Get a image containing the map Actual Results: A blank beige-colored image, with a small text label on the bottom left. Notes: Dupe of rdar://11813051 We urgently need this, please fix this during the beta phase! 07-Aug-2012 10:17 PM Ortwin Gentz: This has been resolved in iOS 6.0 beta 4. Thanks.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!