デバイスの向きは普通以下のコードで取得できる。
UIInterfaceOrientation toInterfaceOrientation = [[UIDevice currentDevice] orientation];
が、AppDelegateのdidFinishLaunchingWithOptionsメソッドが終わる前に上記コードを実行するとデバイスの向きを正しく取得できないっぽい。
以下のコードなら取得できる。
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
こういうバッドノウハウやめてほしいなぁ。。
参考:http://stackoverflow.com/questions/9770347/iphone-device-current-orientation-in-viewdidload