我有在iOS的通用項目,並且在所有的方向,但在iOS的做工精細6.0的iOS 6.0 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation沒有要求
- (BOOL)shouldAutorotateToInterfaceOrientation :(UIInterfaceOrientation)toInterfaceOrientation
方法不再調用。
即使其他方法不起作用。
建議我一些快速的解決方案。
我想設置對象的框架,但沒有一種方法被調用時得到事實上的面向 –
,iOS 6的發佈說明寫着:「爲了兼容性,視圖控制器仍然實現shouldAutorotateToInterfaceOrientation:方法不要獲得新的自動旋轉行爲(換句話說,他們不會回到使用應用程序,應用程序委託或Info.plist文件來確定支持的方向)。「我也遇到向後兼容性問題。 – bandejapaisa