1

I read up Landscape Mode ONLY for iPhone or iPad and followed the steps, the app opens up in landscape mode but whenever i reallocate the view, it again comes up in the portrait mode. I have kept Landscape right as the only supported resolution and have overridden the souldAutoRotateToInterfaceOrientation as well. I am working on iOS 5.1.

Thanks.

Code:

-(BOOL) shouldAutoRotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Community
  • 1
  • 1
Hrishikesh_Pardeshi
  • 995
  • 4
  • 19
  • 45
  • Add your code please(interface orientaton) – Anil Varghese Feb 14 '13 at 06:17
  • Did you do this? `Targets -> YourApp -> Supported Device Orientations -> Click only on Landscape Right (make it darker than the rest)` – esh Feb 14 '13 at 09:01
  • Yes. I could solve the problem temporarily now. I was reallocating the views, which created problems. Now, I am removing all sub-views and writing on the original view again. – Hrishikesh_Pardeshi Feb 14 '13 at 09:17
  • its not working. If you lock/unlock orientation switch in your device (in bottom drawer menu) then you will have portrait even if the app can only do landscape. – Cynichniy Bandera Jul 08 '15 at 12:45

0 Answers0