2012-03-26 4 views
0

私は、カメラ機能を使用しているiPadアプリケーションを開発しています。私はUIPopoverControllerにカメラを開いています。私のアプリケーションは縦向きだけをサポートしています。私はUIPopoverControllerを縦向きだけに制限するようにしたいと考えています。縦向きのUIPopoverControllerを制限するにはどうすればいいですか?

助けがあれば助かります。

ありがとうございました。ポートレートモードで表示するウルアプリを制限するための

答えて

0

、この1を設定....

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return NO; 
} 

設定return NOすべてのクラスで... :)

0

UIPopoverControllerのオブジェクトのインスタンスを作成します。向きが変わるたびに表示/非表示を切り替えます。

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    if ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight)) 
    { 
     // hidden your popover 
    } 
    return YES; 
} 
関連する問題