2011-12-16 1 views
1

私はより多くのカスタムUIAlertViewが必要なので、私は使用しています。私の問題は、たとえそれを無効にしたとしても、デバイスの回転を任意の方向に可能にするということです。TSAlertViewはデバイスローテーションを有効にします

AlertViewが表示される前に、ランドスケープモードは無効になっていますが、私がshowを呼び出すと、任意の方向が可能です。

ここでは何が起こっていますか?私はUIAlertViewでこの動作をしていません。

答えて

0

@implementation TSAlertViewControllerに移動し、チェックshouldAutorotateToInterfaceOrientation

@implementation TSAlertViewController 
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
{ 
    return NO; 
}