You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kerri Shotts (JIRA)" <ji...@apache.org> on 2016/07/11 19:25:11 UTC

[jira] [Commented] (CB-9762) App icon and Launch image for iPad Pro

    [ https://issues.apache.org/jira/browse/CB-9762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371461#comment-15371461 ] 

Kerri Shotts commented on CB-9762:
----------------------------------

So I've been finally able to get back to this and I've got a new version of the plugin PoC at https://github.com/kerrishotts/cordova-plugin-ios-launch-screen/tree/2.0.0

The plugin now uses an image set referenced by the launch storyboard. This allows the developer to specify any combination of density and size classes they need. The plugin accepts @1x, @2x, @3x, and "compact" and "any" (matching "regular" size) width and height combinations, which means there is a possible 12 images that can be supplied. I went through some calculations and, assuming I did the math right, in practice only five should actually need to be specified (currently), but one can also get by with only specifying one image as well (in which case, v2 works much like v1).

Here's how a sample config.xml would look:

    <platform name="ios">
        <splash src="res/splash/ios/Default@2x~universal~anyany.png" />
        <splash src="res/splash/ios/Default@2x~universal~anycom.png" />
        <splash src="res/splash/ios/Default@2x~universal~comcom.png" />
        <splash src="res/splash/ios/Default@3x~universal~anycom.png" />
        <splash src="res/splash/ios/Default@3x~universal~comany.png" />
    </platform>

The key is "@[density]~universal~[width][height]"; what comes before and after doesn't matter to (but will be preserved by) the plugin. "any" technically matches all regular sizes since "compact" is the other option. (I could have gone with "any" and "regular", but this made more sense). I suppose, technically, the plugin could use "reg" in place of "any", but I wanted to be consistent with how Xcode renders the image set.

Side note: the assistant editor's preview is absolutely rotten for verifying which device and viewport gets which image. For whatever reason, it insists on showing only one image picked from the image set. For example, if the image set contained a @1x/any/any image, my MBP only ever displays /that/ image, regardless of if the device selected in preview would actually pick another image. What's even more odd is by MBP is a retina device, so I would actually have expected it to pick the @2x/any/any version, and yet it doesn't. So the only way to actually verify things is to use the sim or a real device. 

Thoughts, ideas, comments?

> App icon and Launch image for iPad Pro
> --------------------------------------
>
>                 Key: CB-9762
>                 URL: https://issues.apache.org/jira/browse/CB-9762
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: iOS
>    Affects Versions: 4.0.0
>            Reporter: Manuel Martiarena
>              Labels: cordova-ios-4.1.1
>         Attachments: Default-Landscape@2x~ipad-pro.png, Default-Portrait@2x~ipad-pro.png
>
>
> Provide app icon image and launch image for iPad Pro
> iPad Pro (@2x) App icon required 167x167
> iPad Pro (@2x) Launch image required 2048 x 2732 (portrait)
> 2732 x 2048 (landscape)
> https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org