2009-09-04 3 views
0

내가 가로 모드에서 내 응용 프로그램을 실행하려면 내가 단계를 수행하고 여기에 설명 :iPhone 앱이 가로 모드로 실행됩니다. 왜 애매한 경고인가?

http://developer.apple.com/iphone/library/technotes/tn2009/tn2244.html

가 summerize하려면 내 정보에서

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

: 내의 ViewController에서

.plist :

<key>UIInterfaceOrientation</key> 
<string>UIInterfaceOrientationLandscapeRight</string> 

시뮬레이터 나 장치에서 실행되면 다음 메시지가 나타납니다.

2 단계 회전 애니메이션 사용. 부드러운 1 단계 애니메이션을 사용하려면이 응용 프로그램에서 2 단계 메서드 구현을 제거해야합니다.

허?

누군가가 의미하는 바를 설명하고 해결 방법을 알려주십시오.

건배,

답변

1

더그 문제는이 방법에 있습니다

- willAnimateFirstHalfOfRotationToInterfaceOrientation : 지속 시간 :
- willAnimateSecondHalfOfRotationFromInterfaceOrientation : 지속 시간 :

귀하의 ViewController는 그들 중 하나가? 의견을 말하십시오. 또는 두 번째를 추가하십시오.

+0

브릴리언트. 고마워. 게다가 이것들은 내가 본 것 중 가장 긴 메소드 이름 중 하나가되어야한다 ;-). 내가 C C 해커라고 말할 수 있니? 건배. 감사. – dugla

관련 문제