I have a splash that displays at my app’s startup while it loads data from a Web query. I’d like to make sure the splash displays for at least 3 seconds, but sometimes the load query takes less than this. However, I don’t want this 3 seconds added to the time it takes to load the web data; I just want to make sure the minimum is 3 seconds.
In other words, can I time how long it takes to load the data, then maybe set a delay for the difference between that load time and 3 seconds, and make the splash hang on (using a selctor or something) for that extra amount of time?
I’d suggest that instead of doing it that way, you start a 3 second long timer when you start the load query. When each finishes, set a boolean to say that one finished and call a method that checks if both are done yet; if so, it’s time to close the splash window. (sorry, no code examples – I’m not familiar with Objective C)