Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Customise LaunchScreen on iOS
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Customise LaunchScreen on iOS

Scheduled Pinned Locked Moved Mobile and Embedded
ioslauchscreen
4 Posts 3 Posters 2.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • shavS Offline
    shavS Offline
    shav
    wrote on last edited by shav
    #1

    Hi everyone!

    I have a question about LaunchSreen for iOS Applications. I have a .pro file with settings:

    TEMPLATE = app
    
    QT += qml quick widgets
    
    SOURCES += main.cpp
    
    RESOURCES += qml.qrc
    
    mac {
        ICON = icon.icns
    
        macx {
            QMAKE_INFO_PLIST = Info.plist
        }
        else:ios {
            QMAKE_INFO_PLIST = Info_ios.plist
    
            assets_catalogs.files = $$files($$PWD/*.xcassets)
            QMAKE_BUNDLE_DATA += assets_catalogs
    
            launch_images.files = $$PWD/LaunchScreen.xib $$files($$PWD/*.png)
            QMAKE_BUNDLE_DATA += launch_images
        }
    }
    
    # Additional import path used to resolve QML modules in Qt Creator's code model
    QML_IMPORT_PATH = $$(QTQMLDIR)
    
    # Default rules for deployment.
    include(deployment.pri)
    

    In Info.plist I added this line:

    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    

    The file which I want to use as LaunchScreen has name "LauchScreen.xib" and path to it in project settings is correct. But if I build my project and load it I see standard LaunchScreen. If I try check the application bundle I found the standard xib not my. The question is: How I can change standard LaunchScreen in my application?

    I know about LaunchImages but I want to use xib or storyboard. This article says I can do this. But It don't work. Thanks for the any help.

    Mac OS and iOS Developer

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi,

      Depending on your version of Qt launch_images is already used internally (it should change in the next version of Qt to avoid that problem). What you can do is rename it to something else like app_launch_images

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • shavS Offline
        shavS Offline
        shav
        wrote on last edited by
        #3

        Thanks! It's works!

        Mac OS and iOS Developer

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bogong
          wrote on last edited by
          #4

          If you want storyboard based launch screen use this perfect guidance https://appbus.wordpress.com/2020/04/15/qt-ios-splash-storyboard/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved