You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to get the retina images working. I added an @2x version of the image to the project. But when I'm on my retina Mac I always get the annotations with double the size....
Any idea how I can fix this?
The text was updated successfully, but these errors were encountered:
I don't have a mac with a retina display, so I can't try this, but have you tried the following:
In your targets build settings, set "Combine High Resolution Artwork" to no
Load your images like so (assuming you have images named pin.png and [email protected]):
NSString * imageUrl = [[[NSBundle mainBundle] URLForImageResource:@"pin"] absoluteString];
view.imageUrl = imageUrl;
I noticed that when I had "Combine High Resolution Images" set to YES, the two images would be combined into a multipage tiff file, with the high resolution image set as the first page. Then when the tiff was loaded in the map, it would only show the first page, which was the high resolution one, and I don't have a retina display so the pins were huge. Setting "Combine High Resolution Images" to NO keeps them as separate pngs, and URLForImageResource:@"pin" should in theory return the correct image depending on whether you have a retina display or not. But again, I don't have a retina display so I can't confirm.
Hi,
Is it possible to get the retina images working. I added an @2x version of the image to the project. But when I'm on my retina Mac I always get the annotations with double the size....
Any idea how I can fix this?
The text was updated successfully, but these errors were encountered: