1

When an iOS app starts, it takes the launch image from a folder called Images.xcassets. I want to know how can I change the starting image to one that comes from a server.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
Mr. Ji
  • 11
  • 4

3 Answers3

1

It's not possible to use a launch image provided from an external source. You should bundle every element (launch image/launch screen) with your application.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
0

You can't Launch Image change dynamically. But you can show the image from server in a custom view controller before show your main interface, lots of software does this, of course you can put video or ads on it.

According to apple user interaction guide, launch image will be load at first time you run this app. So it's impossible to change it dynamically.

You only can set multiply images for each languages, but still, iOS will load one of them and won't change anymore.

Hope this can help you! :)

Jaylen
  • 31
  • 4
  • That's what you're talking about. My app already has it. But the product manager wants to configure the launch image automatically,Unfortunately, I don't know how can I do it. – Mr. Ji Nov 08 '17 at 16:21
  • @OldChicken Yep, I've add document instruction in my answer. Apple don't want launch view to be interactive. – Jaylen Nov 09 '17 at 02:38
0

Use a blank view in your LaunchScreen.storyboard - then in your Initial view controller, get your image from your server.

Keep in mind - if the device does not have internet service, or has particularly slow service, your app will look like it is not doing anything... so you should at least have some sort of "fall-back" screen.

DonMag
  • 69,424
  • 5
  • 50
  • 86