I am working on a iPhone App and I am trying to set a launch screen image. How can I set a launch screen image, is it possible to add a UIImageView
and assign it a image?
If you need more information to answer the question then please let me know.
Thanks in advance
Adding a Launch Screen in Swift Projects. A launch screen is the very first screen presented to users when your app starts up. When you create a new project with UIKit, Xcode automatically generates a storyboard file named LaunchScreen. storyboard for developers to design the launch screen of the app.
Choose File > New > File. Under User Interface, select Launch Screen, and click Next. Give the launch screen file a name, choose a location, select the target that you want to add the file to, and click Create. In the settings for your target, select the General tab and find the “App Icons and Launch Images” section.
Yes, you can easily set a UIImageView
in the LaunchScreen. Simply delete the pre-existing labels from the LaunchScreen.xib
, add a UIImageView
from the Interface Builder. Assign the following 4 constraints to that UIImageView
with respect to the parent view:
And finally set the image to the UIImageView
.
Hope this helps you in what you wanted to do.
Update:
Have a look at the following image for further description:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With