Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wrong interface orientation or unknown

The problem is this:

  • I put the simulator in landscape
  • I start the app
  • The app is unable to detect the correct orientation, always unknown!

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

How can I solve that?

thanks

like image 978
Duck Avatar asked Jul 17 '26 21:07

Duck


2 Answers

This isn't a bug; just use the interfaceOrientation property of your UIViewController to get the current orientation. That property is always set at app startup.

I recently wrote a blog post on this issue:

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

like image 149
Tyler Avatar answered Jul 19 '26 13:07

Tyler


It's a simulator bug. report it to Apple: bugreport.apple.com

like image 29
Jasarien Avatar answered Jul 19 '26 13:07

Jasarien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!