2012-07-16 2 views
2

작동하지의 작업 완벽한하지만하지 아이폰 OS 4아이폰 OS UIInterfaceOrientation은에서 iOS 5

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return (interfaceOrientation == UIInterfaceOrientationPortrait || 
    interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown); 
} 

어떤 생각

+2

잘 작동합니다. 그것이 "작동하지 않는"방법에 대해 자세히 설명해 주시겠습니까? – Chris

+1

iPhone iOS 5 상태 표시 줄 만 회전하지만 앱 화면이 보이지 않는 경우 – Mutawe

+0

보기 컨트롤러에 어떤 종류의 하위보기가 있습니까? 프로그래밍 방식으로 또는 IB에서 크기 조절 마스크를 변경 했습니까? – ahmad

답변

2

같은에서 iOS 5에서 사용할 때 보내셨습니까?

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications] 

귀하의 앱 대리인에 보내셨습니까? 일치하지 않는 경우 "끝내기 ..."메시지 - 자세한 정보는 google이 방법을 참조하십시오.