It seems that when my app loads, it does not know its current orientation:
UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
if (o
Try This one
[[UIApplication sharedApplication] statusBarOrientation];
or implement this one in app delegate
(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
}
it works