Hi,
This is a continuation from a previous question that I asked: http://stackoverflow.com/questions/3730190/iphone-view-strategy
I am now using the following method to switch between views:
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
[window setRootViewController:[self gameViewController]];
[[[self gameViewController] view] becomeFirstResponder];
The problem I am having is that none of my views rotate properly (the status bar rotates but nothing else). The initial view is fine but any views that I navigate to using the above method have the problem with rotation.
I have implemented the shouldAutorotateToInterfaceOrientation method in all of my view controllers as follows:
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES to allow autorotation
return YES;
}
This has become a bit of a sticking point for me. Any ideas?
Thanks, Alan