Try checking the status bar orientation:
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
Also there are a few other view controller methods fired before viewDidLoad. Look at awakeFromNib and initWithCoder.