0
奇怪的問題,但是當一些UIViewController不支持任何方向時發生了什麼? :)當shouldAutorotateToInterfaceOrientation總是返回NO時發生了什麼?
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return NO;
}
將支持哪個方向?什麼是該UIViewController的行爲?
由於評論聲明它將默認爲肖像,除非您在plist中將其他方向設置爲默認值。 – Sathya
如果我記得,如果前一個視圖控制器處於橫向並且視圖被壓入堆棧,這可能會導致問題。它可以在橫向上顯示,這可能不是你想要的。 – geminiCoder
嗯,我的意思是,如果你考慮這個問題,如果你沒有回覆,它就會變成肖像或風景(只是一般的東西),實際上並不存在方向。 –