0

I have read a few posts on this topic about making the launch screen last longer, but I want to make it shorter.

Currently my launch screen takes 4 seconds before loading the login screen, and the app is not even close to being finished yet. Does that mean the launch screen could take longer to load once the app is finished?

Is there any way to make the launch screen appear for 2 seconds?

Xcode, Swift. backend in PHP.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Alex
  • 19
  • 2
  • 2
    What have you tried so far? What research have you done? Please add more information so people do not duplicate work you have already done. – Robotic Cat Jun 22 '17 at 23:35
  • I've read a lot about this, but all the forum posts on this topic are about making the splash screen longer. I want to make mine shorter, I've been told I have no control over this, I know there are work arounds for making it longer such as sleep scripts, but I have found nothing on making the launcher screen shorter... its currently 4 seconds and I want to make it 2 seconds. – Alex Jun 22 '17 at 23:56
  • 1
    It appears until your app finished loading. Update your question with details about what your app does on startup. – rmaddy Jun 23 '17 at 00:15
  • Ok.. perhaps then its taking 4 seconds because the app is still in development? On startup the launcher screen appears straight away and after 4 seconds loads the first screen of the app. I am using hexcode for the background colour of the launcher screen and a .pdf file for the resource on the screen, would it be better practice to consolidate the launcher screen into a .png image? would this help reduce the time of the launcher screen delay? – Alex Jun 23 '17 at 00:18
  • 1
    As I said, update your question with the code you a running on app launch. Show your relevant app delegate code. – rmaddy Jun 23 '17 at 00:25

2 Answers2

0

The launch screen loading time depends on how "long" it takes your initial view controller to be prepared.

So, if you want it to "load faster" make your initial view controller more lightweight, do this by:

  • Reducing the number of interface elements being shown
  • Do not perform that many operations inside the "view did load" method.

Other than this, theres really not much you can do to control the time.

Pochi
  • 13,391
  • 3
  • 64
  • 104
0

There isn't really a straightforward way of making the launch screen last shorter, because it depends on how long it takes for the necessities of your app to load.

Remember, the shorter the launch screen, the better, so the users of your app won't think that your app is taking a lot of time to boot up.

Xcoder
  • 1,433
  • 3
  • 17
  • 37