確定這裏是應用程序的結構:iPad的取向
在委託,我添加RootViewController的作爲子視圖的窗口:
RootViewController *rootView = [[RootViewController alloc] init];
[window addSubview:rootView.view];
在RootViewController的存在inteface我箱編程(早午餐的像跳板那樣的按鈕),並且目前只能在肖像模式下工作。
當我添加:
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
NSLog(@"we are here");
return YES;
}
什麼也沒發生,其所謂正當的應用程序運行,而不是當我改變方向。
那麼我錯過了什麼? 如何讓我的視圖控制器根據方向旋轉?
感謝您的任何幫助。
是的,忘了說我已經安裝了info.plist。我有4個項目,每個方向一個。 – Nimrod7 2010-08-25 13:19:24
你有其他viewControllers或RootVC是唯一的嗎? – Francescu 2010-08-25 13:44:57