High-resolution icons for tabs - Retina display
I'm trying to add high-resolution artwork to my application so it displays clearly on my iPhone 4, however even though I've added the corresponding high-resolution version of the image, forums@2x.png, it's not picking it up and using it on either the iPhone 4 itself or the simulator.
My code is as follows:
var forumsTab = Titanium.UI.createTab({
icon:'img/icons/tabs/forums.png',
title:'Forums',
window:forumsMainWindow
});
I'm using SDK version 1.4.0, and I can't figure out why it won't use the high-resolution icons.
1 Answer
-
If I understood correctly, shouldn't:
icon:'img/icons/tabs/forums.png',
Be:
icon:'img/icons/tabs/forums@2x.png',