UIViewController and splash screen orientation issue on iPad
UIViewController and splash screen orientation issue on iPad
- Subject: UIViewController and splash screen orientation issue on iPad
- From: Eric Giguere <email@hidden>
- Date: Wed, 25 Aug 2010 07:57:31 -0400
Hi all
I have a small problem here with a small application I'm writing for the iPad.
First, I manually show a splash screen. Doing so instead of using the default.png behavior allows controlling the time the spash is shown on screen. To do this, I've found a quite simple example on the net that can be resumed to this function:
-(void)showSplash
{
UIViewController *modalViewController = [[UIViewController alloc] init];
modalViewController.view = modelView;
[self presentModalViewController:modalViewController animated:NO];
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:2.0];
}
The problem is that when I start the application with the Pad upside down, the splash view does not get auto-rotated even though my main view behind it is always showing with the right orientation.
Obviously, this manually created UIViewController doesn't know that the device has been rotated.
Anybody has an idea why is it so, and how to fix this other than using 2 images, which doesn't make sense for 180 degree rotation...
There doesn't seem to be any way to manually tell this controller that it has to be rotated...?
Thank you!
Eric.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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