2011-07-28 2 views

답변

0

를 사용하는 것처럼

0

당신이 그들을 처리 할 수 ​​있습니다. 오리엔테이션을 확인하려면 if 문 설정에서 원하는 레이아웃 내에

UIViewController* vc = //your current view controller 
    UIInterfaceOrientation orientation = vc.interfaceOrientation; 
// NSLog(@"orientation %@",orientation); 
    if(orientation == UIInterfaceOrientationLandscapeRight){...} 

범위 내로 확인하면됩니다. nib 파일에이 파일을 가지고 있다면, self.view = portairtView; 그것은 정의 될 수 있고 동일한 펜촉에있다. 보기의 안쪽 부분에서도 같은 일을 할 수 있습니다.

+0

y 질문은 nib 파일에 관한 것입니다. – mahyar

관련 문제