KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am having a MKMapView of size 64x64. I am creating an image from map view using 'renderInContext:' method. And assigning the image to UITableViewCell's imageView. In normal iPhone, its showing the image correct. But in iPhone(Retina) its showing the image blurred. I am tesing this in simulator, not in actual device. I have attached the screen shots below. The thumbnail in the left side, with rounded corners is the UITableViewCell's imageView. The thumbnail in the right side is MKMapView. I am using the following code to get the image from map view. UIGraphicsBeginImageContext(CGSizeMake(64, 64)); CGContextRef context = UIGraphicsGetCurrentContext(); [[mapView layer] renderInContext:context]; thumbnail_image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); Why this happens in iPhone(Retina)? How to fix this?
Tags (comma-separated)
Save Edits
Cancel