0
根視圖是一個UIImage視圖,它有子視圖,有子視圖。我的根視圖將在橫向打開,我已經在項目的.plist中設置了兩個項目屬性,並在applicationDidFinishLaunching中集成了application.statusBarOreintation並驗證了它的工作原理。UIImageView子視圖的自動旋轉
但是我所有的子視圖都以縱向出現。我如何在我的子視圖上更改此設置?
感謝 // :)
根視圖是一個UIImage視圖,它有子視圖,有子視圖。我的根視圖將在橫向打開,我已經在項目的.plist中設置了兩個項目屬性,並在applicationDidFinishLaunching中集成了application.statusBarOreintation並驗證了它的工作原理。UIImageView子視圖的自動旋轉
但是我所有的子視圖都以縱向出現。我如何在我的子視圖上更改此設置?
感謝 // :)
你有一個視圖 - 控制?你的shouldAutorotateToInterfaceOrientation返回什麼?
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
沒有viewcontroller,您將不得不應用轉換來旋轉您加載的每個視圖。
謝謝,這真棒:) – Spanky 2009-09-05 03:08:02