I'm helping out on an app for the iPad on Xcode 4. I know there is the
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
that should return YES if you want to support all orientations. Previously, the app was stuck in Landscape mode. I am trying to change the views to support all orientations. So I changed the occurrences of that method to return YES instead of only YES for the LandscapeLeft and LandscapeRight orientation. However, when I try to do this:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
NSLog(@"%i, %s", self.interfaceOrientation, __FUNCTION__);
}
I always get 3 or 4 in the console which are the two Landscape orientation. I checked the Summary page when you click on the project icon, and all device orientations are supported. In the .plist file, all orientations are listed. Is there another place that this could have been set that I'm overlooking? Thanks.