[iPhone] Frustrated by a simple task
[iPhone] Frustrated by a simple task
- Subject: [iPhone] Frustrated by a simple task
- From: WT <email@hidden>
- Date: Thu, 13 May 2010 00:25:24 +0200
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.
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.
I've tried several combinations of
a) setting the height of the view controller's view to 460 or 480
b) setting the height of the image view to 460 or 480
c) setting the image that goes into that image view to the Default.png image (which is 320 x 480) or setting it to a version of the launch image that is "missing" the top 20 pixels (so it's 320 x 460, coinciding with the the bottom 320 x 460 pixels of Default.png)
d) turning on or off the simulated status bar
e) setting various options for how the image view is positioned when its frame changes (scale to fill, top, bottom)
f) setting the vertical position of the image view to -20, 0, or 20
Clearly, there are far too many combinations to try and the underlying problem is that I don't understand the details of the launch process when it comes to positioning the first view controller's view.
So, here's what I would like to ask: either for the correct "recipe" (even without an explanation - I can figure it out once I have the correct setup) or, preferably, for a pointer to a place in the documentation where I can read about the exact process that goes on here. I've searched the documentation but must have missed the mark.
This is clearly a very simple task and, yet, it's been frustrating me to no end.
Thanks in advance.
WT_______________________________________________
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