How do you update the app icons and launch images to support IOS 6 and 7 simultaneously?

后端 未结 6 826
谎友^
谎友^ 2020-12-07 11:49

I have been stymied figuring out how to release an application from Xcode5 that supports IOS7 AND IOS 6+ in the same build, with assets (icons and splash screens) that load

相关标签:
6条回答
  • 2020-12-07 12:06

    For Xcode 6

    For LaunchImage you must make sure you check iOS 6.0 and Prior iPhone (Portrait ) or iPad // depend on your project configuration

    Sizes

    Default.png (320x480) 
    Default@2x.png (640x960) 
    Default-568h@2x.png (640x1136)
    

    enter image description here

    The same to AppIcon

    0 讨论(0)
  • 2020-12-07 12:11

    Apple has clear guidelines on requirements for IOS 7 apps but even then, I ran into errors making a single app support multiple OS versions. After getting it to work, I thought I would point out a few areas that were hangups for me to aid others in the future.

    I first updated the whole of my app to support IOS 7 cleanly and then went back and enabled previous versions but that process is not necessary.

    Just ensure you first set the correct deploy targetdeployment target

    Once you set the deployment target, Xcode5 nicely changes the list of default assets it requires to support the multiple OS versions. Ensure you reupload the correct versions of icons at the required resolutions and required filenames (shown below for IOS6-IOS7 support) Icons, their sizes, and their default filenames in Xcode5 for IOS6 -7 support

    Do the same for the launch images, note that you will have to rename your launch images to new names, Xcode tries doing this for you if you let it. Note the new sizes below, as IOS7 expands the launch image background behind the status bar. Launch images, their names, and sizes required

    Finally, manually add the two .plist flags below and you should be set to have your icons render across IOS versions consistently, with no gloss (explanation follows)

    manually add these entries to your plist IOS7 in its new flatness removes the postprocessing the previous versions did where they added a highlight and gloss effect to icons. That effect is no longer done for IOS 7 apps but if you load an app from Xcode5 on IOS 6, it will reapply the default gloss effect. This is infuriating because there no longer is a "prerendered" GUI flag in Xcode to disable that postprocessing. As mentioned above, you need to add the flag manually to your application's plist. In my case, I had to add the flag in two locations to force IOS 6 to stop applying the effect. You can access the plist by either opening the file directly or navigating to the settings in your project overview. You may need to uninstall the app from your simulator and then rebuild the app to force simulator to lose its cache of the old icon.

    0 讨论(0)
  • 2020-12-07 12:11

    Just use "asset catalog" (you can select that from general on your target).

    That would create an images.xcassets on your project there you can easily drag your icon designs for pre iOS 7 and for iOS 7.

    UPDATE: So after the formal release of iOS 7 I can now write this:

    On the asset catalog itself select the Appicon set that you want to set as pre-rendered then go to Attribute Inspector and just mark "iOS icon is pre-rendered". you can also set there of course which OS and devices you want to support (it would create all options so you can just drag& drop to set).

    Important thing to note is that for some reason if you use several targets and several sets inside this catalog you must add the Target Membership manually. To do this just mark the "asset catalog" file, go to file inspector and mark all targets where you want to use it. I think Apple should do that automatically when you select the "asset catalog" from the target settings but till then I decided to mention that here (took me an hour to figure this out).

    0 讨论(0)
  • 2020-12-07 12:13

    I went through this recently. Seems by default it only shows the following.

    enter image description here

    Easy fix is add a new AppIcon

    enter image description here

    To give you all these options.

    enter image description here

    0 讨论(0)
  • 2020-12-07 12:18

    My experience with this:

    When creating a new empty app, it will create a "default" app icons / launch images asset catalog that is incomplete as stated by @Smick.

    The annoying part of this new "catalog" is that it doesn't show the image sizes.

    To work around the issue, select the project on the project navigator, and on the "General" you will notice 2 areas - App Icons and Launch Images. Those will point to an asset catalog. You can change it to "don't use asset catalog." After that, the interface will change to a list of files / dimensions.

    However there are several issues with this interface:

    1. It should only ask for the retina versions of the images (and compute the normal, or have two links, one for normal and another for retina).
    2. Several images (the launch ones) need to be renamed for them to work (the system does this for you).
    3. Two images are not assignable due to errors (iPad Portrait iOS 7, and iPad Landscape iOS 7, both in normal resolution) - you can specify an image for them, but the image will not stay on and will become de-selected when you insert the next image.
    4. The image dimensions specified are slightly different from the ones stated on the HIG manuals.
    5. I've a strong dislike of the "new" notation of images with points (as they are device dependent and so not exact).
    6. If you don't want to see iOS 6 reapply the "highlight / lighting" on the icons, you need to add a key on the app plist (project manager | project | info. There, you can add a key "Icon already includes gloss effects". You may need to add it also on iOS 5 icons if required.
    0 讨论(0)
  • 2020-12-07 12:19

    If you setup the asset catalogue you can open it select the image and then go to the inspector and tick this box

    Screen shot of xcode 5

    0 讨论(0)
提交回复
热议问题