2014-06-20 2 views
0

탭 응용 프로그램에는 두 개의보기가 있습니다.iOS7의 탭 응용 프로그램에서 각 ViewController의 방향을 설정하는 방법은 무엇입니까?

firstView를 세로로 고정하고 seccondView를 세로 및 가로로 회전 할 수 있습니다.

아래 코드를 firstViewController에 구현합니다.

- (NSUInteger)supportedInterfaceOrientation { 
    return UIInterfaceOrientationMaskPortrait; 
} 

secondViewController의 코드는

- (NSUInteger)supportedInterfaceOrientation { 
    return UIInterfaceOrientationMaskAllButUpsideDown; 
} 

하지만 난 내 휴대 전화를 회전 할 때 설정은 작업이 없습니다.

클라우드 누군가가 내 방법을 알 수 있습니다.

답변

관련 문제