3

Is there a way to load images from the "Launch Image" inside the images.xcassets programmatically.

This works if the images.xcassets is a "Image set" but not a "Launch Image" anyone know how to get around this?!

self.launchImage = UIImageView(frame: self.view.frame)
self.launchImage.image = UIImage(named: "LaunchImage")
self.view.addSubview(self.launchImage)

Launch Image

Launch Image

Image Set

Image Set

K-G
  • 2,799
  • 4
  • 26
  • 42

0 Answers0