我有一個永遠是肖像的iPhone應用程序。但我需要旋轉一個視圖來顯示一個表格。 該按鈕位於子視圖中。我有這樣的代碼:從子視圖更改界面方向 - iOS
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
但是因爲這種觀點是從子視圖調用接口的方向將被忽略。
有什麼辦法可以改變接口的方向?
謝謝!
javiazo想旋轉一個特定的視圖,而不是狀態欄... – foundry