[TIMOB-20203] Add support for iPad Pro launch screens
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-02-11T08:26:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS, Tooling |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2016-01-06T18:50:32.000+0000 |
Updated | 2017-03-24T17:56:50.000+0000 |
Description
Apple has updated their iOS Human Interface Guidelines page (https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html#//apple_ref/doc/uid/TP40006556-CH27-SW1) with iPad Pro specific launch screens sizes.
2048 x 2732 (portrait)
2732 x 2048 (landscape)
To support this, we need to add the images to the lookup table: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L4909-L4930.
We need to determine the name of the image. It should be
Default-Landscape-<SOMETHING>.png
and Default-Portrait-<SOMETHING>.png
. What is something? No idea.
Part of the problem is as of Xcode 7.2, this new iPad Pro launch screen is not listed in the Launch Image asset catalog. This means we don't know the dimensions and "scale".
Attachments
File | Date | Size |
---|---|---|
Simulator Screen Shot 11 Feb 2016 09.29.06.png | 2016-02-11T08:30:52.000+0000 | 23192 |
This Stack Overflow answer might help: http://stackoverflow.com/a/33752847/4626813 Although Apple DevRel is said to have confirmed it won't be supported: https://openradar.appspot.com/22915712#ag9zfm9wZW5yYWRhci1ocmRyFAsSB0NvbW1lbnQYgICA0Lbn4goM Still, we should try if it works.
This doesn't:
I say we resolve this as Invalid in favour of TIMOB-19694
Apple is not going to support a launch screen for the iPad Pro in favor of a storyboard-based launch screen. For now, you can continue to use the existing iPad @2x images, but they will be stretched to the screen size. Future versions of Titanium will make it easier to add custom launch screen storyboards where you can make your own storyboard and place a native resolution image. This isn't a great solution since the rules that iOS follows when selecting a @1x, @2x, or @3x image from an asset catalog image set appear to be based on the density, not the screen resolution. In other words, the @2x image will be used on multiple iOS devices which have multiple resolutions and you won't be able to get a pixel perfect image for every iOS device; there will be some up/downscaling.
[~cbarber] when you use iPad@2x for iPad Pro it won't just upscale the launch image, but the complete app: !Simulator Screen Shot 11 Feb 2016 09.29.06.png|thumbnail!
Closing ticket as invalid with reference to the above comments.