At WWDC, I faintly remember them saying that with Xcode 6, you could use a vector image for your app icon. It may have been that, or they said that you could use one png size for all of the icons. Has anyone figured out how to use this?
Digging through the Xcode 6 UI, there doesn't appear to be a way to do this.
When you create a new image asset, there's an option to set the type of the asset to 'vector'.
This option doesn't appear for AppIcon or LaunchImage assets, so I conclude this isn't possible.
Related
I would like to use a PDF rather than create pixel specific icons. XCode (6 & 6.1) will build device specific pixel images from PDFs during compile for icons but I can't figure out how to get this done for the AppIcon (the Springboard App Icon).
The Icon collection appears to be different from an AppIcon collection (.imageset for icons, .appiconset for the App Icon)
Wondering if anyone has had any luck with this?
Perhaps XCode (v6.1) is not yet capable of this?
As far as I can tell: with Xcode 6.1.1, using a PDF is only possible for images, not for the app icons.
After switching to XCode5 I've just re-done all my icons and launch images for an app, with the exception of retina launch images I should have a complete set for both iPad and iPhone, iOS6 and iOS7, thanks to this tool: http://www.appiconsizes.com/
But XCode5 absolutely refuses to use them all. I removed all the old images from my project and added the new ones. Some, XCode automatically detects, seemingly at random. Many others, it says it can't find the images needed even though they are named according to Apple's guidelines (as far as I can see, it's all a bit confusing with so many variants). It lets me find them manually but doesn't seem to be using them properly.
And my launch images, it insists on using images from a different target even though these are definitely not marked to be included in this target. It won't even let me change those ones, if I try to then it just ignores my selection.
A few screenshots follow. I originally had just an "Icon" icon identifier in my plist, since Apple say it will automatically detect different variants, but XCode has then added Icon-76 and Icon-120, seemingly contradicting this. I'm aware XCode5 supports controlling things more through your plist than XCode4, but shouldn't require that - you should be able to tell it the icon base name or use "default" and it would figure things out?
Use an asset catalog for your project.
It has placeholders for the launch image and the icon and each one tells you which size it needs.
Much easier than handling lots of dirrefent files in different locations.
In the project info page there is a button that says "use asset catalog". It will import all your images for you. The code doesn't change when using an asset catalog so it will all still work.
Another thing with asset catalog is that the name of the files doesn't matter. You just drag the image to the slot you want it to go into. With icons and stuff there is only a size restriction.
Even for retina images you don't need the #2x before because there is now a slot for "standard" and "retina" images.
I guess the problem is in Your icon Name,
for iPhone retina Name should be Icon-60.png , Icon-60#2x.png
So as Fogmeister suggested use asset catalog
Like
So its like
I started a new project in Xcode 5.
What is this Images.xcassets shenanigans?
Am I supposed to put the various images I'm using for my app (like button images & stuff) in there or only the AppIcon & LaunchImage?
I see I can create a new folder in Images.xcassets. Should I create a folder called "Button Icons" or whatever and just throw them in there?
See, but I just want to add some retina images to my target.
I'm only supporting iOS 7. So, I don't need to worry about other formats like non-retina.
Why did they make this so complicated and not document it at all? Why do I need these extra Contents.json files?
It looks like I can uncheck (remove) Images.xcassets from the target but not the individual image files within the asset catalog.
Can I just do things the old way or would I be missing out on compression/performance enhancements?
Is there a setting I can set so that my app treats all image files as retina images even if they dont have the #2x suffix in their filename?
In the "What's New in Xcode 5" WWDC 2013 Session Video, the speaker says Image.xcassets "collects all of your image-based resources, such as your launch images, icons, loose images that you use in your project, together into one place."
"Also, Xcode knows about new iOS 7 APIs and so can even optimize the loading of your image-based resources." I'm assuming "it does it for you automatically" as long as you put your images in Image.xcassets (or another asset catalog included in your target).
So, I suggest you suck it up, and adapt or die.
I don't know.
There are not retina devices that are still supported by iOS 7 such as iPad mini and iPhone 3GS. Keep that in mind. The images will scale down and still work but I wanted to make sure you knew iOS 7 supported not retina devices.
When you ask for an image by name iOS will look for the image by name. For example, "background.png" if there is a retina image "background#2x.png" and the device is retina iOS will handle that for you. If you only plan on providing retina images there is nothing wrong with making the images all retina and excluding the "#2x" info in the image. name.
I realize that iOS 7 is not out yet and should not be discussed but I could not find the answer to this question anywhere and iOS 7 comes out in a few days.
I submitted my app for iOS 7 and I got a warning saying I am missing the icon size 120 X 120 which apparently is the new standard size for icons in iOS 7. What I don't understand is what I should name this icon because my app supports both iOS 6 (Default app icon size is 114 X 114) and iOS 7.
Does anyone know how I should name this 120 X 120 icon for iOS 7 and my old iOS 6 icon that was 114 X 114?
Thanks!
It doesn't matter what you name the file as long as you hook it up correctly in Targets General Tab. You just click the Folder icon and select the file you want to use. The naming convention only really mattered because that was what was in the info.plist by default for a new project.
And the Targets General Tab realy just sets values in the app's info.plist
Note: I have a build setting ICON_SUFFIX = "Beta" so my beta release via TestFlight has a different bundle ID and Icon so it sits along side my app store version and doesn't over write it.
You can also use one asset catalog to organise your icon images, it's quite easy.If there is one image asset catalog, you use that one, otherwise you can new one. then select Use Asset Catalog in the App Icons part of General tab, you need to prepare the following image size and just drag the images to the corresponding location.
The icon sizes for iPhone and iPad for iOS 5~7 screenshot is as below:
or download it here
Here is online tool, Icons Master, which will create about AppIcon.appiconset folde, take care how icons should be big naming convection as well.
I just came across the solution here. Anyone with this problem refer to this following post!
iOS 7 App Icons, Launch images And Naming Convention While Keeping iOS 6 Icons
Can someone explain me or link - I have 512x512 icon but I have no idea what icons sizes I need to create and how to add them in to my iOS app. What sizes I need and how to add them, and for what?
The Apple documentation has all you need to know.
In a nutshell: 57x57 for non-retina iPhone or iPod Touch, 114x114 for retina display, and 72x72 for iPad.
Ive put all the images named correctly at the correct size into a github repo, so there can be no confusion.
https://github.com/FattusMannus/iOS-Development-Image-Placeholders
Just download them as a zip, edit them and copy them into your project
AH
In the current 5.x xCode version you can use app icon set (AppIcon.appiconset). In the picture you can see where you can found it. Here is online tool, Icons Master, which will take care how icons should be big naming convection as well.
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.
Download Asset Catalog Creator Free from iTunes. All you have to do is select a base image, and the program will create all required iOS icon sizes for you and place them neatly in an .xcassets file, which you can simply drag into Xcode without worrying about the sizes/resolutions of individual icons.
Question was asked a while back but the answer changes from time to time. Here are a few web tools that are updated with the latest requirements and get the job done:
http://www.theappicon.com/ or
https://resizeappicon.com/
Drag and drop the .xcassets folder that they return into your xcode assets catalog and it should populate your app icons as you need them.