AlertWindow and IOS


i have one situation that i need one advice.

On my application when it's starting, my application do some checking and one of them is if the database exists.

If not, i need to show a AlertWindow.

Works all well, but on IOS, the AlertWindow does not appear when starting and I have to minimize and open the application on IOS again t be able to see it.

What is the best way to do it. How can I make the firts screen to be totally loaded and then finally will start the checking and show any dialog window without any problem ?

Is there any function that will be called when the application is totally loaded and the first screen is showed ?