I searched for other existing posts, but none of them satisfied my requirements.
Here is the problem i face,
- My app supports both the Modes , landscape and portrait.
- But my first screen only supports Landscape , so the app must start in Landscape.
- I have set supported Orientation to all the 4 options
- I have set the Initial interface orientation to Landscape (left home button)
- In the view controller of the first screen i am defining the below
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{ return (interfaceOrientation != UIInterfaceOrientationPortrait); }
And when i start the app the simulator always opens in Portrait and my view is all messed up in the portrait mode , since it is designed only for the landscape. After the switch to the Landscape, the device remains in this mode.
can anyone help me with the solution to avoid this ?
Thanks Naveen
EDITED :
This info may be helpful , The problem is faced only when i hold the device in Portrait and then launch the app.
Its not the duplication of this question, Landscape Mode ONLY for iPhone or iPad
Landscape Mode ONLY for iPhone or iPad
I do not want my app to be only in Landscape , i want only the first screen of my app to be only in Landscape.