기기 방향이 작동하지 않는 이유를 알지 못합니다. 프로젝트 속성에서기기 방향
:
내 코드에서 나는이 :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation ==UIInterfaceOrientationLandscapeRight));
}
내 아이폰에 프로브 및 변경되지 않습니다.
뭔가가 있습니까? 형 배열의 Supported interface orientation
-
편집 (의 Info.plist)
지원되는 인터페이스 방향 info.plist에 추가 – Rajneesh071
기기에서 방향 잠금을 사용할 수 있습니까? –
아니요, 잠겨 있지 않습니다. xcode에서 iphone 에뮬레이터로도 시도했습니다. – user1256477