Launch Image Storyboard

  1. last year

    Art G

    12 Jul 2016 Prescott AZ

    So in Release 2 we can now dump our launch images and apparently a mysterious invisible storyboard is used instead. It sounds like this gives us a blank launch image? This isn't what Apple recommends. So to get what Apple recommends we need to create special views just for launch. Am I understanding this correctly?

  2. Edited last year by Travis H

    Some of Apple's own apps like Notes use an empty launch screen, and plenty 3rd party apps do the same- or show a logo- even though Apple advises not to show logos. It's up to you. The launch screen/storyboard format is not officially documented. If you don't want a blank launch screen, you can still use launch images.

  3. Tom C

    21 Jul 2016 Pre-Release Testers, Xojo Pro Europe (London, England)

    Is there any way of avoiding a blank white launch screen but still keeping support for the 12.9" iPad Pro's screen size in Xojo 2016 r2?

  4. Edited last year by Norman P

    You can replace the launch screen that is in there with one compiled by Xcode
    Its not exactly "simple" to do but it is possible
    Thats the only way to do this at this time

    Feedback Case #44273 :)

  5. Tom C

    21 Jul 2016 Pre-Release Testers, Xojo Pro Europe (London, England)

    Thanks, Norm: I've already given my points to your case.

    When you say that it's "not exactly 'simple'", do you mean "basically not practical unless you really mess around with the build process" or "practical if someone who's good with declares does the right stuff"?

  6. Dave S

    21 Jul 2016 San Diego, California USA

    Storyboards cannot be created via code at compile time.... so "declares" won't help.... They need to be built with Interface Builder (Xcode), or a 3rd party tool (of which I am unaware of any at this time)

  7. Tom C

    21 Jul 2016 Pre-Release Testers, Xojo Pro Europe (London, England)

    Thanks for the clarification, Dave.

  8. You'll have to compile one in Xcode then copy the compiled launch screen into the app replacing the original one

    It should get simpler in time - just cant say when

  9. C T

    23 Jul 2016 Pre-Release Testers, Xojo Pro Ontario, Canada
    Edited last year by Paul L

    Today I tried to upload a new version of an iOS app already on iTunes. I made some minor interface changes to the app. I did not delete the launch images from the project. I am using Xojo 2016 r2. This is the error message I got regarding launch images/story boards.

    -image-

  10. Tom C

    24 Jul 2016 Pre-Release Testers, Xojo Pro Europe (London, England)

    I'm struggling to find the forum thread where I learnt about this error, but it's essentially a case of needing to specify in your Info.plist file that your app doesn't support iPad multitasking features.

    See the 'iTunes File Sharing' heading on the following page for information about using an Info.plist file: Xojo documentation

    You need to set the UIRequiresFullScreen option in your plist:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>UIRequiresFullScreen</key>
    <true></true>
    </dict>
    </plist>
  11. Michel B

    25 Jul 2016 Pre-Release Testers, Xojo Pro
    Edited last year by Michel B

    @C. TBaumgartner This is the error message I got regarding launch images/story boards.

    Just a detail, Thomas. DropBox does not seem able to server images as a web site would. Instead of trying to use the image option, just post the link.

    https://xojo.io/3d5917d5d206

  12. 12 months ago

    Dave S

    7 Sep 2016 San Diego, California USA
    Edited 12 months ago by Dave S

    Has anyone built a new Launchscreen.storyboard or LaunchScreen.XIB file?
    Since it can't be built in code, and I need one... I have been fighting with Interface Builder for days and cannot get it to work
    It is rather simple.... 3 labels horizontally centered, and one image centered in the view.
    I stumbled around blindly and finally ended up with setting that work in the simulator (I only have an iPad2 to test on)
    and it displays properly in both Port and Landscape

    EXCEPT on the iPadPro simulator...... it is fine in Landscape mode, but all the labels are NOT horizontally centered in Port mode

    plus I get "Frame for <label> will be different at run time" for each label and image

  13. 4 months ago

    Norman P

    Apr 20 Xojo Inc
    Edited 4 months ago by Norman P

    @Tom Catchesides Thanks, Norm: I've already given my points to your case.

    When you say that it's "not exactly 'simple'", do you mean "basically not practical unless you really mess around with the build process" or "practical if someone who's good with declares does the right stuff"?

    Not simple in "you have to do a decent amount of mucking about and use Xcode"
    Declares CANT do it as this is loaded by the OS before your app has really started

    1) open Xcode and create a launch screen (I'm using Xcode 8)
    in Xcode File > new File
    in the template chooser at the top left choose iOS
    select "LaunchScreen"

    (or write it by hand as an xml document - yuck - so we'll assume youre going to use the Xcode template)

    2) layout whatever controls - note there are serious restrictions on what kinds of controls you can use
    no web views etc
    labels & images are probably all you really need / want

    these are ones I've gleaned from other developers experiences

    The app is not yet loaded so the view hierarchy does not exist and the system can not call any custom view controller setup code you may have in the app

    The launch screen can only use basic UIKit views such as UIImageView and UILabel. You cannot use a UIWebView.

    Localizing the launch file does not currently seem to have any effect. The base localization is always used so you will probably want to avoid text on the launch screen.

    You cannot specify different launch files for iPad and iPhone. This may be a problem if you have significantly different interfaces for those devices as there is only so much you can do with auto layout and size classes.

    3) save

    4) note you cannot compile this storyboard in Xcode

    5) compile this storyboard by hand using ibtool
    xcrun ibtool —compile <path to output file> <inputfile from step 2>
    This will generate a DIRECTORY with a few items in it
    IF you name the output directory "LaunchScreen.storyboardc" it will make life a tad easier

    6) in your BUILT iOS app replace the contents of “Base.lproj" with the one compiled in step 5

    7) test like mad & this should replace the default launch screen

    EDIT - revised step 5 (about naming the output directory) and also step 6
    Removed step 7 as its no longer needed because of changes to step 5

  14. Norman P

    Apr 20 Xojo Inc

    IF you put an IMAGE View on the launch screen you cant quite completely set it up in Xcode (if you've followed the previous steps) since there is no project for you to add assets to
    You CAN still put the "image name" into the property for the image view and set it to scale to fit etc etc in Xcode
    And then make sure you add another copy file step to add the require image(s) to the built apps "resources" folder
    if the names match up then the images will load
    if not they wont

    again test like mad

    until we have a system in place in the IDE to make all this unnecessary :)

or Sign Up to reply!