Incorrect interface orientation or unknown

The problem is this:

  • I put the sim on the album
  • I am running the application
  • The application can not determine the correct orientation, always unknown!

I created a sample project that demonstrates the problem that I have. Take it here

How can i solve this?

thank

+3
source share
2 answers

It's not a mistake; just use the interfaceOrientation property of your UIViewController to get the current orientation. This property is always set when the application starts.

I recently wrote a blog post on this issue:

http://bynomial.com/blog/?p=25

+3
source

. Apple: bugreport.apple.com

+2

Source: https://habr.com/ru/post/1744208/


All Articles