I am trying to rotate the screen to landscape but facing issue. Now , what I am facing is when I am connected with USB for debugging it is working perfectly but , when I remove USB and then test my application then I am unable to get orientation change. I tried this on a demo application where it is working in both condition. I am sharing my method which i placed in app delegate and already choose all possible orientation in my project.
AppDelegate method :
- (UIInterfaceOrientationMask)application:(UIApplication )application supportedInterfaceOrientationsForWindow:(UIWindow )window {
return UIInterfaceOrientationMaskAll;
}