How to capture UIView to UIImage without loss of quality on retina display

Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions (as documented on this page). Pass 0.0 for scale (the third argument) and you’ll get a context with a scale factor equal to that of the screen. UIGraphicsBeginImageContext uses a fixed scale factor of 1.0, so you’re actually getting exactly the same image on an iPhone 4 as … Read more

How to show Image over Map not as Pin but as seperate image? [duplicate]

You are looking for Map Overlay MKOverlayView. Check these tutorials: Overlay View Image Overlay Creating overlay Creating a MKOverlayView Create a subclass of MKOverlayView like: .h #import #import @interface MapOverlayView : MKOverlayView { } @end .m #import “MapOverlayView.h” @implementation MapOverlayView – (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)ctx { UIImage *image = [UIImage imageNamed:@”yourImage.png”]; CGImageRef imageReference = image.CGImage; MKMapRect … Read more