I want the MainView to contain an image so that when I flip a view to another, the user sees the image instead of a blank background. It works fine in portrait mode, but when the user goes into landscape mode, it doesn't work. Here is my code for adding the image in the App Delegate:
UIImageView *background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"wood.jpg"]];
[self.window addSubview:background];
[self.window sendSubviewToBack:background];
I have also included shouldAutoroate:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
What should I do? Thanks!