iPhone: Make your Default.png sexy – ⑧ ericd.net blog.

The Default.png file that automatically gets displayed while your application is loading is a nice way to give the user some feedback (instead of looking at a black screen for a little while). With the iPhone 3Gs this might not be such a big deal, but in any case when loading is complete, the Default.png goes away instantly and you merely snap into your application’s view. It works well enough, but it’s not very sexy.

I’ve seen where some will take their default view and snapshot that and bring it into Photoshop, and lay down a semi-transparent black on top of it to make it look disabled. Thus you snap into the view in a less jarring manner. This is a little better, but it’s still not sexy.

Why not use animation? Place a UIImageView over everything and when we’re done launching, remove it with a fade and some zoom? Sure… and here is some quick code to do just that:

In your YourAppDelegate.h create a reference to a UIImageView and also whip up a method you’ll call through code:

Now, in YourAppDelegate.m add the guts of that method and some additional code in your applicationDidFinishLaunching:

You’re done. You could mess with this in other ways, but it makes the whole entry into your application a lot more appealing in my opinion.

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注