0
不工作我做的,我想支持方向的iPad應用,所以我寫了這個代碼:取向的iPad
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
//return YES;
return (interfaceOrientation==UIInterfaceOrientationPortrait||interfaceOrientation==UIInterfaceOrientationLandscapeLeft||interfaceOrientation==UIInterfaceOrientationLandscapeRight);
}
我創建在縱向模式下幾桌,所以當我旋轉我的應用程序,表仍然只根據肖像模式,但我的視圖內的表不會自動調整大小。
你需要記錄多一點你的問題。就像你在UIViewController裏面使用UIViewController一樣?這可能會導致方向問題。 – 2011-12-15 05:00:18
我使用的只有導航控制器和只有一個視圖控制器 – AndroidAddiction 2011-12-15 05:02:53