iOS 7: Proper iPad icons for iPhone app? - iphone

We have an app for iPhone only, but often users install it on their iPads. With iOS7 and the asset groups, it no longer respects our new iPad icon image sizes (76px and 152px). If we don't use asset groups and have our old icons (72px), it will load them, but they clearly look scaled. If we rename our 76px to Icon-72 and Icon-72#2x, the same problem happens.
Is there a proper way to get iOS 7 sized iPad icons in an iPhone only app?
Thanks!

Took me a while to work this one out, as I was having the same issue.
If you highlight your AppIcon Asset group when looking at it in Xcode, you can add additional fields to it by opening the inspector (right hand pane) and clicking the checkboxes on what you want. Then you can drag in your icons and have them work properly.

Here the guidelines iOS for all icons and the new guidelines for iOS 7 here.
and Here a website to create all size of your icons for iOS 6, 7 and Android with the 1024*1024.
Add the different keys of your icon in your info.plist and add the icons in your resources :

Related

Cannot get icon asset register to display for iPhone after originally setting up for just iPad

I'm writing an app that was originally just for iPad but now needs to be for phones too. I went to the Deployment info in General setup and changed it from iPad to Universal. However, when I went to the App icons and launch images and selected the App icons source in the Asset Register it only shows iPad
How can I reset it to display iPhone icons too?
Open your xcasset catalog, select AppIcon and bring Utilities panel with Cmd+Alt+0, there you can check iPhone and new empty entries foer iPhone icon sizes should appear inside of AppIcon

ios11 iphone app icon is missing on iPad

I have an iPhone only app but it works in compatibility mode in the iPad too(no surprises).
but after I updated the app for the ios11, app icon on the iPad is missing.
here is what I've tried;
- launch on the iPhone simulator, icon appears
- launch on the iPad simulator, icon is missing
change the device options from "iphone" to "universal", run the iPad simulator, icon appears but app needs a new iPad ui.
change back to "iPhone" and the app icon is missing again in iPad. really confusing.
I tried to create a new project and make the same changes but never able to make the icon missing again.
I'm using cocoa pods if that makes any sense.
I think I'm missing a settings or something else, I'm really trying to find it, any advice would be greatly appreciated.
I've found the problem.
In info.plist, there was an extra or problematic entry.
- CFBundleIcons~ipad
Remove this line and iPad icons appear normally.
This problem has been reported by many users over the past 6 months (including desperate pleas to Apple to fix this bug), yet no one's reported the following solution.
I'm using Xcode 9.2, and I noticed today that my iPad/iPhone's application will run fine on my iPad (iOS v11.2.1) but the icon is missing.
This is a legacy app, about 2-3 years old, and the cause seems to be my Appicon file. When I view this file, I see this:
Previously, this resource was sufficient to provide the app icon for both the iPad and iPhone, but apparently, not anymore.
I went into my Images.xcassets file, right-clicked, and selected "App Icons & Launch Images\New IOS App Icon" and now have a look at the extra icon possibilities:
Notice the extra icons for iPads.
Sure enough, I created yet more .png files, with resolutions matching the desired iPad resolutions settings, and now, when I build my app and run it on the iPad, it does show the correct icon.
Oh, and I also needed to go into my project's build settings, select the "General" tab, and change the "App Icons Source" to the name of my new image set, "AppIconNew".
Et voila. No messing around with Cocoapods, no need to change the .plist file (mine didn't have that "CFBundleIcons~ipad" entry anyway), I just needed to create a new image set.
Okay, time to go back to my modern, cosy world of using Visual Studio again now.
(Happy sigh..)
I've had a few legacy apps that did have the CFBundleIcons~ipad in the Info.plist, so I check that first. However, I've also had instances where it was just missing the asset as #Mike Gledhill mentioned. If this is the case, you don't have to go through adding a new AppIcon set. Just check the iPad box in the Attributes Inspector for the current AppIcon assets and the iPad sizes will show in the current set. Then just add the correct assets for each size requirement.
I didn't have CFBundleIcons~ipad entry in my Info.plist file as per "karpat"s answer. So I moved to "Mike Gledhill"s answer, then after observing my all the icons from Image assests, I found that for particular icon which was invisible only on iPad, the device type set was iPhone.
I just changed device type by right cling on image set to Universal :
This did work for me.

Why won't Xcode 5 let me specify iPad images for an iPhone app? And what about the iTunes Artwork icon?

Xcode 5 tries to be smart about what icons my app needs.
I have a non-universal iOS 7 app. Xcode only lets me specify icons for the iPhone, but none for iPad. Previously you could still add iPad-specific icons so it looks better on iPad.
Also Xcode doesn't list the 512x512 and 1024x1024 "iTunes Artwork" icons which are still a requirement according to iTunes Connect Developer Guide / iOS 7 HIG.
Like you can see in the above screenshots only 3 Xcode lets me specify only 3 icon files.
Where can I specify the big iTunes Artwork icon if not in the icons asset catalog?
In your assets file (usually Images.xcassets / Assets.xcassets) go to the Attributes inspector on the right sidebar. Make sure iPad is ticked:
In later versions of Xcode, instead ensure an iOS (not "None") is selected on the iPad dropdown:
You need to select the AppIcon inside the asset catalog and bring up the properties navigator. In there you can add iPad assets for both iOS7 and pre-iOS7 and also specify whether the icons are pre-rendered or not.

set icon for iPad with app's target device is iPhone

I set my app's target device to iPhone
then, I can only set icon for iPhone and cannot set icon for iPad:
So when I download the app from iPad with iOS7, the icon on iPad is default white one.
just navi to the attributes inspector ,and select the check box.
You have to use prepo tool which is use for generating icons for ios device whether it is for iPhone/iPad/Universal accoding to your selection it will generate require size iCons Automatically. Download PREPO tools from MAC app store and just drag you icon in it and see the magic, Use genrated icons in you application it will work. please see below image for reference.
Find the answer:
Step 1: Select images.xcassets, choose New App Icon:(it will named AppIcon-1 by default), in AppIcon-1, you can set all icons including iPad icons
Step 2: Select TARGET of general tab,set source of App Icons to AppIcon-1:
You set Devices to iPhone, thus you will not get iPad icons, change your Devices to universal and the iPad icons will appear.
Edit:
try the ipad check boxes in the inspector:
for iOS7 you should use icon of size 120 * 120 pix.
you can add an icon of 120*120 pix in setting where iPhone spotlight iOS 7 40 pt is mentioned

IPhone application and IPad retina icon

I've created an application for iPhone with icon versions for retina and no-retina display (icon#2x.png and icon.png).
Whenever I try to install this application on an iPad 3 a part of Default#2x.png is used instead of icon#2x.png.
Have i to upload specific icon for iPad ? and in this case where!? from Xcode 4.3.2 I see only 2 spaces to include icons, but reserved for iPhone version. I suppose that i need to create a new voice into plist file... but I'm not sure and documentation didn't help me.
I ran into the same problem. I created the resource files Icon-72.png and Icon-72#2x.png in the root of the bundle and added them to "Icon files" in the Info page of the target (Info.plist). Strangely, this didn't do the trick.
My final solution was to convert the target temporarily into an universal app, drag the iPad icons into the corresponding slots of the target's summary page and build it. After that, revert the target to an iPhone/iPod touch app, clean it, built it again.
Interestingly, this seems to work.
Old question, but with Xcode 6.3, if you use assets catalogs, select AppIcon, tick iPad (for iOS 7 and up) and add your 76x76 and 152x152 icons to the catalog
I would create 2 more icons called
icon~ipad.png
icon#2x~ipad.png
The first one will allow for iPad 1/2, and the second one will allow for Retina iPads (iPad 3).
Adding those 2 icons may be enough. Also, try a Clean & Rebuild as Luke said.
Hope this helps =)
I think you should use Icon-72. i used that
When determining the appropriate App-Icon the OS searches the "best fitting size" Icon in the CFBundleIconFiles array or the CFBundleIcons in the Info.plist. If the Default(#2x).png is in one of those arrays, it is selected for best fitting on iPad Retina. Solutions:
Eliminate the Default(#2x).png from this arrays. For the Launch image there is another property. If you do that, the iPhone Retina Icon will be selected.
Optionally add the iPad resolution Icons (72, 72 / 144, 144) to one of those arrays. Then the OS will determine one of those as best fitting.
For the Info.plist keys see also:
https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1
Consider, that the naming of those Icon files are only relevant for older iOS versions. In new versions, the OS just searches for sizes in the mentioned arrays.