How can I test landscape view using the iPhone Simulator?
-
19-08-2019 - |
Question
I wonder if I can test landscape view using simulator?
Solution
Under the Hardware Menu you will find the rotation items which correspond to CMD+Left and CMD+Right
OTHER TIPS
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.