Hi Everybody,
I just wanted to issue a friendly reminder - whether you have an iPad 3 or not - to remember to add a higher-res app Icon in all your iPad and/or Universal builds. I just popped a 144x144 icon into an app I’m updating on account of the whole “iPad-gate” thing, and you’d be surprised the difference it makes. And the better your icon looks, the more likely your users will be to tap on it, right?
And for the uninitiated, here’s how to include the HD icon:
In the same folder as your main.lua file, you should already have an “Icon.png” image (57x57), and if you’re developing for iPad, an “Icon-72.png” image (72x72), plus any number of other icon sizes (small for search results, “Icon@2x.png” for iPhone 4/4S, etc.). Just create an identical icon PNG, sized at 144x144, and call it “Icon-72@2x.png.” Then in your build.settings file, make sure to include “Icon-72@2x.png” in your list of “CFBundleIconFiles.”
See below for a sample build.settings file that would include the new HD icon - this example would be appropriate for an iPad-only app, but make sure that you include any settings required for your app to function properly. This is a pretty basic example:
settings = {
orientation = {
default = "landscapeLeft",
supported = { "landscapeLeft", "landscapeRight", }
},
iphone = {
plist = {
UIAppFonts = {}, -- insert any custom fonts here
CFBundleDisplayName = "Your App Name",
UIStatusBarHidden = false,
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = false,
CFBundleIconFiles=
{
"Icon-Small-50.png",
"Icon-72.png",
"Icon-72@2x.png" -- This is your new iPad 3 HD icon!
},
}
}
}
And that’s it - your app icon will look AMAZING on the new iPad’s retina display. Happy coding, everybody!
-Jason [import]uid: 27636 topic_id: 23444 reply_id: 323444[/import]