2011-07-28 5 views

答えて

0

を使用して行うようにあなたはそれらを扱うことができます。オリエンテーションは、

UIViewController* vc = //your current view controller 
    UIInterfaceOrientation orientation = vc.interfaceOrientation; 
// NSLog(@"orientation %@",orientation); 
    if(orientation == UIInterfaceOrientationLandscapeRight){...} 

ifステートメント設定の希望のレイアウト内で確認できます。あなたがnibファイルでそれを持っているなら、あなたはself.view = portairtViewによって全体のビューを置き換えることができます。これは定義することができ、同じペン先で行うことができます。ビューの内側でも同じことができます。

0

あなたは通常、私は同様の問題があった

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
+0

y質問はnibファイルとそれに関するビューです。 – mahyar

関連する問題