iOS 5에서는 수동으로 방향을 바꿉니다. 모든 것이 정상입니다. 그러나 iOS 6에서는 키보드가 방향이 바뀌지 않습니다 .UAPppication statusBarOrientation이 작동하지 않습니다.iOS 6의 수동 변경 방향
1
A
답변
2
이 시도 :
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
을 대신 이것 :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
UPDATE : 아이폰 OS 7 SDK에서
& 엑스 코드 5 :
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
0
statusBarOrientation
메서드는 supportedInterfaceOrientations
콜백이 0을 반환하는 경우에만 작동합니다. 이전 코드 작업을 수행하려면 statusBarOrientation
메서드를 호출하기 전에 플래그를 true로 설정할 수 있습니다. statusBarOrientation
이 호출되면이 플래그를 재설정 할 수 있습니다.
이 플래그가 참일 때 supportedInterfaceOrientations
에서 0을 반환 할 수 있습니다.
관련 문제
- 1. iOS 6의 직렬화 문제
- 2. iOS 6의 JSON 구현
- 3. iOS 6의 게임 센터
- 4. PayPal iOS 6의 문제
- 5. IOS 6의 UISrcollView
- 6. iOS - 좌표 기반의 UIImage 방향 변경
- 7. IOS 5 Page Curl, Curl 방향 변경
- 8. JXMapViewer의 머리글 방향 방향 변경
- 9. 가로 방향 UITabbar의 방향 변경?
- 10. 컨테이너보기 컨트롤러의 방향 변경
- 11. iOS 5.1 및 iOS 6의 NSDateFormatter 동작
- 12. MySQL 수동 변경 추적
- 13. 변경 플롯 수동
- 14. ios 6의 Apple지도에서 경로를 그립니다.
- 15. 배열을 iOS 6의 테이블보기로 정렬
- 16. HighchartsJS iOS 6의 클릭 이벤트
- 17. iOS 6의 CIGaussianBlur 및 CIAffineClamp
- 18. UITextView 글꼴 iOS 6의 문제
- 19. iOS 6의 AirPlayVideo 속성을 허용합니다.
- 20. 수동 반 시계 방향 플러그인 설치
- 21. iOS : iOS 개발시 수동 보유 릴리스
- 22. iOS 초급 : 화면 방향
- 23. 처리 IOS 장치 방향
- 24. 가로 방향의 방향 변경
- 25. iPhone - UIView 방향 변경
- 26. 방향 변경 취소 - Android
- 27. ActionScript 3.0 방향 변경
- 28. 방향 변경 사운드
- 29. iPhone의 방향 변경 배율보기
- 30. 화면 방향 변경