-1

In my app LaunchScreen.storyboard, I put a progress bar and I want it to move (load) according to how long my app will actually start.

I have followed link, but it's not working. I just started learning iOS programming so please bear with me.

I appreciate your ideas.

Community
  • 1
  • 1
Clarke Gray
  • 3
  • 1
  • 6

2 Answers2

0

You cannot add any logical code to your launch screen as you want.
At launch screen time, Your app is not launched at all. So your code for progress bar will not be running.

I think the better way is using a launch screen first, then show a viewController with a progress bar as you need.

Also you can set launch screen story board as you want.

enter image description here

Saranjith
  • 11,242
  • 5
  • 69
  • 122
0

You can't perform any operation on launch screen. Please check this link https://stackoverflow.com/a/7441962

For that you have to create your own splash screen displayed right after the default iOS one. Check this link for custom splash screen https://www.raywenderlich.com/133224/how-to-create-an-uber-splash-screen

Community
  • 1
  • 1