Localized App Icons with Retina Display for iOS - iphone

I have issues showing a localized app icon with retina display support.
How could this be done?
I tried to make Icon.png and Icon#2x.png localized, then I tried to make the proj-Info.plist localized and try to link to different Images.
But only the Icon of the project language are being shown...

You need to create one infoplist.strings file for each of the language. For that, create language.lproj folders manually and put Infoplist.string file in each of the folder.
Inside the file enter the following: CFBundleIconFile="Icon_en.png" or CFBundleIconFile = "Icon_pt.png".

Related

Launch Screen Localized Image not rendering

Problem: The Launch Screen Image is either not rendering (white space where UIImage should be), or not being localized.
My project is set up to load the LaunchScreen from Launch.storyboard via the target's General configuration.
Some facts:
XCode 7.3
Multiple Targets with unique Launch.storyboards.
Tried with two images one was a localized Image.png file (in resources, not in .xcassets), the other was 2 unique image sets in
.xcassets one named "image_en" the other "image_fr".
Some things I tried:
Cleaning the project, resetting the simulator, restarting xcode,
deleting the app's DerivedData.
Created a new Master-Detail project and localized the LaunchScreen.storyboard file. Then added
image_en in en.lproj/LaunchScreen.storyboard and replaced the image
in the fr.lproj/LaunchScreen.storyboard with image_fr .xcassets files
this solved the image not loading problem, but the image was still
not localized.
Created a new Master-Detail project and localized the LaunchScreen.storyboard file. Then I localized the Image.png and added it to the LaunchScreen. This image appeared, but wasn't localized.
Question: Why is a black void appearing in the Launch Screen localized Image.png in my original project? && is this an xcode bug or am I doing something wrong?

Icon file names iOS 7

How do I have to name the Icon files for Xcode 5?
It gives always errors that de app is not on the top level, it is really frustrating.
Can someone give me the filenames that you have to use for every resolution?
icon file name and size for ios 7 compatible app as below (iPhone)
Icon.png - 57*57
Icon#2x.png - 114*114
Icon-Small.png - 29*29
Icon-Small#2x.png - 58*58
Icon-40.png - 40*40
Icon-40#2x.png - 80*80
Icon-60#2x.png - 120*120
Icon-76.png - 76 x 76
Icon-76#2x.png 152 x 152
(EDIT: corrected names of 120 & 40 sizes, and added 76 + 152)
Asset Catalog is the best thing for setting application icons... It removes the need to follow naming conventions when you are adding or updating your app icons...
You can use this for setting splash screens & application icons..
In Xcode 5 you can find this options..
1- In the project navigator, select your target.
2- Select the General pane, and scroll to the App Icons section.
It really doesn't matter how you name them. If you're using the new catalog feature, you can just drag the icons into each slot.
I've named them in different ways and it hasn't mattered. Ex. app_icon_72.png, app_icon_144.png or app_icon72#2x.png.
Please refer this url, you will get good idea about application icons naming convention
http://developer.apple.com/library/ios/#qa/qa1686/_index.html
I have collected all required sizes for iOS 9+
Application Icon for iTunes, iPhone and iPad
for three types : App, Spotlight and Settings
including Retina and non retina screens needs Icons in following different sizes (in pixels).
29x29
58x58
40x40
50x50
58x58
76x76
80x80
87x87
120x120
152x152
167x167
180x180
512x512
1024x1024
Even Xcode guide us for this
Also you can check apple's Icon and Image Sizes guidelines
For naming convention
iOS 5 no longer requires specific file names for various icon files. HOWEVER - If you include spaces in the icon file names (or probably any other illegal non-alphanumeric character) the icon files won't work.
If you are not using Image catalog in Xcode-5 & still you are getting the error "app is not on the top level", then you are just messed with the location of your icon files. You should keep your icons files in your project folder in the same location where your PROJECT.xcodeProj file resides.
As #JackD said specific name doesn't matter's any more for ios icon. All you need is perfect size.
I have created this application which will provide you all the icons based on information provided here. Get the application from here, and follow the instructions in readme file to create all the required icons for iOS application.
This link has all the required filenames and resolutions: https://developer.apple.com/library/ios/qa/qa1686/_index.html
But noticed that under the section: "Icons for Universal Apps", the filename for both 58x58 and 87x87 are the same Icon-Small#2x.png. Anyone knows what should be the proper names for these 2 resolutions?
1) 58x58
Icon-Small#2x.png
Settings on devices with retina display
Recommended if you have a Settings bundle, optional otherwise
2) 87x87
Icon-Small#2x.png
Settings on iPhone 6 Plus
Recommended if you have a Settings bundle, optional otherwise

XCode won't accept my 57x57 size icon?

I'm trying to archive my app with XCode. I have 4 different icons (57, 72, 114, 144).
It works fine when I drop them in but when I try to validate it after building I get the following...
If I go back and try to replace the 57px icon with a 72px icon I get this message.
Why is this happening?
Here is the values in plist, haven't done anything here manually.
Here is the apple doc for icons
In case the above link gets expired I'm including the screen shot, I know it's the content are impossible to see, here is the image link. Btw you can always right click on the image and copy image location and open it in new tab.
Here is how you can specify icons
In theory you can name them whatever you want for iPad as long as they are in the info.plist. In order to support older version of iOS, I always name them the way apple recommand, which has already been quoted by Inder Kumar Rathore.
Take a look at here to see how to Add Icon files in Info.plist
#PhlipK: Your info.plist looks very different from mine, here is how mine looks like.
Take a look at the link I mentioned above and try to edit your info.plist see if that works.

How do I change the text directly beneath the icon of my iphone app

There is small text beneath the icon names when you are in the home screen of the ipod.
My text is much too long and it looks like "Cedr..egg"
I was wondering if there was a way to change that text to a shorter name?
I think what you're looking for is Bundle Display Name in the info.plist file.
You can change the name of the app by renaming the app in the Applications folder in iTunes.
If you are looking to do this in Xcode you are looking for the LocalizedApplicationNames.strings file.
NOTE: This may prevent automatic upgrades in the future.

How to specify image for the Settings app in iPhone app

How do I specify the image for the Setting in the iPhone for my iPhone app? What are the requirements for the images?
In addition to the settings bundle, your application bundle can contain a custom icon for your application settings. If a file with the name Icon-Settings.png is located in the top of your application’s bundle directory, that icon is used to identify your application preferences in the Settings application. If no such image file is present, the Settings application uses your application’s icon file (Icon.png by default) instead, scaling it as necessary. Your Icon-Settings.png file should be a 29 x 29 pixel image.
From "Application Preferences"
From the newest "iPhone Human Interface Guides", you should update your application bundle so that it contains only the "Icon-Small.png", instead of "Icon-Settings.png".
And to add to Squeegy's comment -- the docs state that if you don't include an image file named Icon-Settings.png, it will use the icon.png from the app. But there are times (Notifications screen) which actually don't default to the icon.png name, and you need to specify the name (icon.png) in your info.plist file. Good practice to do it.