0
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
我使用這段代碼進行旋轉。我在該視圖中使用圖像視圖和滾動視圖。旋轉視圖...?風景方向不起作用
在此先感謝
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
我使用這段代碼進行旋轉。我在該視圖中使用圖像視圖和滾動視圖。旋轉視圖...?風景方向不起作用
在此先感謝
首先設置
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return YES; }`
在MAINVIEW控制器則是工作的其他控制器的
在您的info.plist添加的所有四個方向的UISupportedInterfaceOrientations並設置所有四個方向是真的。
你在哪個類中使用該代碼? – Eiko 2011-05-30 10:20:09