I wonder if I can test landscape view using simulator?
Under the Hardware Menu you will find the rotation items which correspond to CMD+Left and CMD+Right
In the Hardware menu, there is an option to change the orientation. Also, Cmd-Left and Cmd-Right will rotate the virtual phone.
- Setting simulator orientation in IDE
The above (hardware->device) is a solution for rotating the simulator only once the simulator is launched ,but there should be also an option in your IDE to define the orientation of the simulator.
If you are using JDeveloper IDE the go to
Application --> Deploy --> New Deployment Profile --> select Profile Type(iOS) --> iOS Options --> Device Orientations. IDE Device orientations. There you can mention which orientation you need by default, either landscape or portrait.
- Short cut key for switching Orientations
Press command key and press left arrow / right arrow. This would switch between the landscape and portrait views you require.
I hope this might help your query.
I was struggling with this exact problem for about an hour.
On the left-most project navigator screen, click the name of your project (should be the highest dropdown button), then click the general tab on the page that opens up, scroll down and you should see a section titled "Deployment Info" Make sure you select the checkbox of each orientation you want available for your project.
Test your simulation again.
© 2022 - 2024 — McMap. All rights reserved.