카메라 기능을 사용하는 iPad 응용 프로그램을 개발 중입니다. UIPopoverController에 카메라를 열고 있습니다. 내 응용 프로그램은 세로 방향 만 지원하며 UIPopoverController도 세로 방향 만 지원하도록 제한하려고합니다.세로 방향 전용 UIPopoverController를 제한하는 방법?
도움이 될 것입니다. 사전에
감사합니다. UR 응용 프로그램을 제한하는
카메라 기능을 사용하는 iPad 응용 프로그램을 개발 중입니다. UIPopoverController에 카메라를 열고 있습니다. 내 응용 프로그램은 세로 방향 만 지원하며 UIPopoverController도 세로 방향 만 지원하도록 제한하려고합니다.세로 방향 전용 UIPopoverController를 제한하는 방법?
도움이 될 것입니다. 사전에
감사합니다. UR 응용 프로그램을 제한하는
는 세로 모드에서 볼이 하나 .... 모든 클래스에서
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return NO;
}
설정 return NO
... :)
는 UIPopoverController의 개체 인스턴스를 생성 설정합니다. 방향이 변경 될 때마다 숨기기 및 숨김 취소
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight))
{
// hidden your popover
}
return YES;
}