2011-01-11 6 views
0

私は風景のみになるアプリケーションを作っています。したがって、私のルートUIViewControllerは風景(私が持っているすべてのxibファイルは横向きです)に設定されています。ルートUIViewControllerの向きの風景、サブビューで奇妙な感じに触れる

// Override to allow orientations other than the default portrait orientation. 
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
// Return YES for supported orientations 
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

サブビューの1つでボタンに触れようとすると、タッチが届きません。上記のオーバーライドを削除すると、ボタンがタッチされますが、サブビューは縦向きに表示されます。

この問題を回避するにはどうすればよいですか?

おかげ&敬具、

デビッドそれはさておき

答えて

0

は、あなたのInfo.plistファイルでサポートされているの向きを設定する必要があります。

キー "UISupportedInterfaceOrientations"を持つ "Supported interface orientation"の下にあります。リストの縦向きを削除します。

関連する問題