I need to set a background color or background image in my iOS application's launch screen. I was wondering if there was a code similar to:
self.view.backgroundcolor=[UIColor redColor];
Thank you
If you want to set background image for launch screen than there is two way:
image.axassets
and add new LaunchImage set in it.UIImageView
in LaunchScreen.xib
and set image to it.If you want to set background colour for launch image than add UIView
in LaunchScreen.xib
and set backgroundColor
propertity of it.
Both way is easy but I preferred to go with image.axassets LunchImage set.
Note: If you use image.axassets
LaunchImage than do not forget to migrate this set with application.
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