node ninja
node ninja

Reputation: 32986

How to simulate face up and face down in the iPhone simulator

I am following a tutorial to make a 3D application that responds to changes in orientation. It even responds to orientation changes such as face up and face down. How can this be simulated in the simulator?

Upvotes: 2

Views: 863

Answers (3)

Mr. G
Mr. G

Reputation: 445

You can simulate Face up and Face down in the iOS simulator using the menu bar Hardware -> Orientation ->enter image description here

Xcode 10.1

Upvotes: 1

Dan Loughney
Dan Loughney

Reputation: 4677

Unfortunately, you can't simulate face up or face down in the iOS Simulator. This is still true in Xcode 6. It's a great tool, but this is one of several features not available. I found your question because I am also looking to simulate face up.

Upvotes: 0

Yogi
Yogi

Reputation: 9

I can share how I did it. In didrotateFromInterfaceOrientation,check the width of navigationbar or toolbar . Handle two cases,

if it is 320(Potrait) { //code } and

if it is 480(Landscpe) { //code }

If you are going to design it for iPad, Just compare for the widths of navigationbar for iPad. It works for all the orientations

Upvotes: 0

Related Questions