Re: [iPhone] Frustrated by a simple task
Re: [iPhone] Frustrated by a simple task
- Subject: Re: [iPhone] Frustrated by a simple task
- From: Ricky Sharp <email@hidden>
- Date: Wed, 12 May 2010 17:39:50 -0500
On May 12, 2010, at 5:25 PM, WT wrote:
> The client I'm writing an app for wants a splash screen with some information that cannot go in the launch image (because it's dynamically generated), meaning that the first view controller to ever be instantiated will have in its view an image view along with other views (labels to hold the generated information). The image view's image must match the launch image, so the overall desired effect is that the app loads (with the launch image being scaled up as usual), then the "startup" view controller is instantiated, its view is shown with a background image that precisely matches the end of the launch-image scaling, and then a second or two later, the app moves on to the actual navigation controller.
Splash screens should be avoided at all costs in iPhone OS apps. Remember that you want the app to launch as quickly as possible and let the user immediately begin doing tasks. Splash screens are typically only useful when a desktop app needs to pre-load lots of resources. On iPhone OS, you want to load things lazily.
But, if your hand is being forced, then read on...
> My problem is matching image and view sizes (specifically, heights) so that the background image does not appear to change from the end of the scaling of the launch image to the showing of the "startup" view controller's view. No matter what I've tried, the client logo in the background image either moves up, or gets stretched up, or both. The labels also sometimes move up (whereas they should be positioned at a fixed distance from the bottom of the screen).
>
> The launch image is 320 x 480, as mandated. In my MainWindow.xib, I have an instance of the first view controller to ever be instantiated (the "startup" view controller) and, of course, an instance of its view. That view has an image view as a subview, along with some labels.
[rest snipped]
It sounds like the app, when running, always displays the status bar. All you need to do is load up the original launch image in say Photoshop, then basically lob off the top 20 rows of pixels. The resultant image will then be the bottom-most 460 horizontal lines.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden