여기에 AutorotateToInterfaceOrientation과 관련하여 이상한 점이 있습니다. 내보기 컨트롤러 중 하나에이 메시지가 디버거 콘솔에서 -shouldAutorotateToInterfaceOrientation 관련 메시지
: 모든 인터페이스 방향에 대해 : 뷰 컨트롤러 -shouldAutorotateToInterfaceOrientation에서 NO 반환. 적어도 하나의 방향을 지원해야합니다.
실제로 회전은 완벽하게 잘 작동합니다. 그리고 메시지가 잘못되었습니다.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return ([centerPoint autoRotateFlag]||(interfaceOrientation==centerPoint.userOrientation));
}
및 autoRotateFlag하거나 단순히 참 (YES), 또는 그렇지 않은 경우 centerPoint.userOrientation 네 개의 허용 가능한 값 중 하나에 고정되어있다 : 여기 -shouldAutorotateToInterfaceOrientation위한 코드이다.
이것은 오랫동안 저에게 효과가 있었으며 앱은 여전히 작동합니다. 나는이 메시지의 출처를 모른다.
아이디어가 있으십니까?