how come when i use the following method in didLoad or willAppear with the iPad simulator the device always thinks its in landscape mode when its clearly in portrait.
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
NSLog(@"orientation - %i", UIInterfaceOrientationIsPortrait(orientation));
this works fine in the iPhone simulator, is there another way to find out the devices orientation?
I have tried adding the supported orientations in the app.plist, but still the simulator thinks its in landscape mode?
Cheers,
UIDeviceOrientation is not the same thing as UIInterfaceOrientation.
Try something like
[[UIApplication sharedApplication] statusBarOrientation]instead.