0

How do you add a static image (.png) as soon as the iPhone application starts before loading the content of the application. In other words, I want an introduction image. I can't figure out the code required to do this.

Thanks in advance!

Jovany
  • 1
  • 1

1 Answers1

0

Just create an image and name id Default.png. It appears while the app is loading.

Louie
  • 5,920
  • 5
  • 31
  • 45
  • Great, thank you! How do I set it to delay a few seconds. like 2-3 seconds before it loads the application. – Jovany Jun 27 '11 at 22:27
  • 1
    1 of 2 ways. 1. Make your default view controller the exact same image and create an NSTimer to push another view after a few seconds. (the better way of doing it) 2. use sleep(3); this will pause your app for a few seconds. (not such a good practice, and apple might not like this) – Louie Jun 27 '11 at 22:36
  • Apple doesn't care if you call `sleep()` (the user perception is equivalent) and it's cleaner from some perspectives. Just don't sleep for too long (10s?), or I think the OS terminates your app for taking too long to start! – tc. Jun 28 '11 at 01:08