I want the device supports only landscape orientation. On iPhones all work fine. But iPad supports portrait too. How to fix it?
I want the device supports only landscape orientation. On iPhones all work fine. But iPad supports portrait too. How to fix it?
As i understand , you can try with this code into any of view controller.
-(BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft | interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}