[SOLVED] Customise LaunchScreen on iOS
-
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.
-
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 -
If you want storyboard based launch screen use this perfect guidance https://appbus.wordpress.com/2020/04/15/qt-ios-splash-storyboard/