iOS 8: Launch screen files don't display if they include a split view controller or search bar

Originator:robotspacer
Number:rdar://18258934 Date Originated:07-Sep-2014 00:32 AM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8 beta 5 (12A4345d)
Classification:Other Bug Reproducible:Always
 
Summary:
The new "launch screen file" option to replace the ever growing number of launch screen images with a single storyboard is a wonderful idea. Launch screen images have accounted for a huge percentage of my total app size—and if rumors are true this is about to get drastically worse very soon.

However the launch screen file currently seems extremely limited in usefulness. Some very basic UI elements, like split views and search bars, don't seem to be supported—if those are included all I get is a black screen, as though the launch screen is missing.

Steps to Reproduce:
1. Create a project
2. Create a separate storyboard to use for the launch screen
3. Set it up with a split view, or even just add a search bar
4. Go to the Targets > General settings
5. Set the appropriate storyboard as the "Launch Screen File"
6. Run the app on a device (in my case I'm testing with a 5th gen iPod touch)

Expected Results:
Something other than a black screen should appear at launch, preferably resembling your launch screen storyboard. In the case of the search bar I would expect to see a simplified version, with no text or search icon.

Actual Results:
A black screen displays during launch.

Version:
iOS 8 beta 5 (12A4345d)

Notes:
I am able to get the launch image to display if I remove the split view and the search bar. I can work around the search bar by using a stretchable image, but the split view is pretty complicated. It looks like I can get part of the way there using container views and constraints that change based on traits, but I'm surprised I'd have to for such a common setup.

If split view controller support is added, it'd be important to include support for specifying the minimumPrimaryColumnWidth and maximumPrimaryColumnWidth in Interface Builder, otherwise it would be impossible to set up a smooth transition to the actual UI.

One other thing I would need to make this work is a way to change whether a bar button item is installed based on traits. Launch images generally include icons without any text, and it's also typical to have certain buttons show up in the detail view instead of the master view on iPad.

Configuration:
iPod touch 5th generation

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!