I wonder if I can test landscape view using simulator?
To launch a Simulator without running an app Do one of the following: Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.
On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.
In iOS no camera functionality can be viewed or used, and in simulator-based platforms the functionality cannot be accessed. As part of camera testing, you will need to wear a real device. A Simulator has no camera on it. Post your activity.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With