In my application, I would like a modal view to present itself when the app starts up and there is no wifi. I have code like this in the applicationDidFinishLaunching:
UIViewController *modalViewController = [[UIViewController alloc] initWithNibName:@"ModalDisconnect" bundle:nil];
[[self tabBarController] presentModalViewController:modalViewController animated:YES];
[modalViewController release];
The nib here is simply a UIView with a UIImageView nested inside.
Question: On the device, the image comes up and is 2x the width of the screen (I can only see the left half). Why could this happen? On the simulator everything works as planned.