0

Can i somehow disable the Face Up orientation in my iPhone app? OR can i handle it somehow?

It distorts the app's view when kept on flat table.

user1845209
  • 2,311
  • 2
  • 18
  • 17
  • 1
    this might help u understand the issue: http://stackoverflow.com/questions/7015709/xcode-getting-warning-implicit-conversion-from-enumeration-type-uideviceorient – Saurabh Passolia Feb 02 '13 at 10:10

1 Answers1

1

Go to project settings in XCode , click on your target and choose "summary".
Then you'll be able to see under "iPhone/iPod deployment" the following section. Just remove portrait/upside down and you're set.

interface orientations

Nir Golan
  • 1,336
  • 10
  • 24
  • 2
    Do you even know what is the difference between Face Up and Upside Down orientations? – user1845209 Feb 02 '13 at 10:48
  • oh snap… sorry mate, i misread the question. In that case should use the proximity sensor, combined with accelerometer.. you should edit your question tough, as its tags are suggestion interface orientation, not detecting a flat surface – Nir Golan Feb 02 '13 at 17:45