現在表示されているViewControllerのUIInterfaceOrientationを確認しようとしましたが、何らかの理由で常に横向きになります。
UIInterfaceOrientation currentOrientation = (UIInterfaceOrientation)[[UIApplication sharedApplication] statusBarOrientation];
if (currentOrientation == UIInterfaceOrientationPortrait){
self.scrollView_.colMargin = 50;
} else {
self.scrollView_.colMargin = 130;
}
なぜですか?