1
我有一個問題。 我的viewController的Xib有多個UIView。 該應用程序以縱向模式啓動,我可以將其旋轉爲橫向。同一個XIB中的多個視圖。問題時旋轉視圖和更改視圖
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES; // (interfaceOrientation == UIInterfaceOrientationPortrait);
}
當我在橫向模式下,我改變視圖按下一個UIButton,「新」的觀點還停留在人像模式.. 這裏是改變視圖代碼:
-(IBAction) gotogame
{
self.view = gameView;
}
我想要查看正確的旋轉視圖,當我更改視圖 怎麼辦?
確定完成,但它轉動我iPhone(模擬器),但認爲沒有旋轉:( – Spale350z
您是否以橫向模式或縱向創建了視圖? – Rajkumar