2011-08-27 37 views
0

我的iPad應用程序設置爲橫向模式。我試圖使用setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal來讓視圖控制器水平翻轉,但它仍然如此,就好像它仍然是肖像。有沒有什麼辦法解決這一問題?在iPad上橫向模式下水平翻轉視圖控制器

+0

這並不存在。 –

+0

post ur code .......... –

+0

你在這裏需要什麼?無論iPad的當前方向如何,該應用只能從一開始就處於橫向格局中? – Ladislav

回答

0

你有沒有想過在模態視圖設置到解構模式是這樣的:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    // Return YES for supported orientations 
    return UIInterfaceOrientationIsLandscape(interfaceOrientation); 
} 
+0

是的,我不幸。你認爲這通常會解決嗎?這是否意味着其他地方可能存在錯誤? –

+0

嗯,我明白你的意思了(我總是與橫軸對稱混淆)。這似乎是不可能的:http://stackoverflow.com/questions/5601317/uimodaltransitionstylefliphorizo​​ntal-flips-vertically-in-landscape。你必須自己做。 –

相關問題