내 응용 프로그램에서 내보기 회전 전에 일부 처리를하고 싶습니다. 회전이 발생하기 바로 전에 발생하는 이벤트가 있습니까?iPhone 이벤트가 약 회전하고 있습니까?
감사합니다, 회전하는 동안 트리거의 UIViewController의 이벤트의 숫자가 있습니다 앨런
내 응용 프로그램에서 내보기 회전 전에 일부 처리를하고 싶습니다. 회전이 발생하기 바로 전에 발생하는 이벤트가 있습니까?iPhone 이벤트가 약 회전하고 있습니까?
감사합니다, 회전하는 동안 트리거의 UIViewController의 이벤트의 숫자가 있습니다 앨런
체크 아웃의 UIViewController의 이러한 방법 :
// Notifies when rotation begins, reaches halfway point and ends.
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
// Faster one-part variant, called from within a rotating animation block, for additional animations during rotation.
// A subclass may override this method, or the two-part variants below, but not both.
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);
// Slower two-part variant, called from within a rotating animation block, for additional animations during rotation.
// A subclass may override these methods, or the one-part variant above, but not both.
- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
- (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation; // The rotating header and footer views are offscreen.
- (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration; // A this point, our view orientation is set to the new orientation.
이
. 회전하기 전에 다음 두 트리거 :
- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
"단지 사용자 인터페이스가 회전을 시작하기 전에 뷰 컨트롤러로 전송."
- (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
"한 단계 사용자 인터페이스 회전을 수행하기 전에보기 컨트롤러로 보냈습니다."
매우 감사 즐기십시오! –