2011-12-16 5 views
1

사용자 지정 UIAlertView가 필요하므로 사용하고 있습니다. 내 문제는 모든 방향으로 장치 회전을 가능하게합니다.TSAlertView에서 장치 회전 가능

AlertView가 표시되기 전에는 가로 모드가 비활성화되지만 표시를 호출하면 방향이 모두 가능합니다.

여기 무슨 일 이니? 나는 UIAlertView로이 동작을하지 않는다.

답변

0

@implementation TSAlertViewController로 이동하여 확인 shouldAutorotateToInterfaceOrientation

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