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
source
share