White splashscreen on iOS

Posted on 2011-04-21
Last Modified: 2012-05-11

I'm creating an iPhone/iPad app which basically shows a (real-time generated) animation in a fullscreen OpenGL window. If I "close" it (press the home button), the current (last) picture is used for the "back to springboard" closing animation, automatically. That works. But if i then restart the app from suspended mode the splashscreen is white. Until the app "truly" restarts and picks up the OpenGL imagery again and things look fine.

I would think that iOS would make a screenshot of the app in it's current state whenever a user presses home to use in the splashscreen animations. But for some reason this screenshot is lost when the app restarts from suspended mode.

Same behavior on iPad and iPhone, simulator or device. I use iOS 4.2.1. Xcode 4.0.1

Any idea's?

Kind Regards,
Daniel Dekkers
Question by:DoZo1971
    LVL 1

    Accepted Solution

    iOS automatically loads the image "Default.png" (can be changed in yout plist) while it is starting up the app. If you want that to change dynamically then you'll have to save your last screen when the app is closing to "Default.png" and it should appear the next time you start the app.

    Author Closing Comment

    Hi, it was our own bug. We pushed the view from the viewstack so underlying white appeared.

    The splashscreens are a hassle. I'm now trying to make a smooth fadeout with CoreAnimation (add an UIImage of the original splashscreen on top and fade that one out). That works fine as such but... the problem are all the different cases, iPhone, iPad, orientations. Big switch statement, ugly.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Article by: SunnyDark
    This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now