---
title: "didAnimateFirstHalfOfRotationToInterfaceOrientation:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontroller/didanimatefirsthalfofrotationtointerfaceorientation:"
---

# didAnimateFirstHalfOfRotationToInterfaceOrientation:

Sent to the view controller after the completion of the first half of the user interface rotation.

## Declaration

```occ
- (void) didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation;
```

## Parameters

- `toInterfaceOrientation`: The state of the app’s user interface orientation after the rotation. The possible values are described in the doc://com.apple.uikit/documentation/UIKit/UIInterfaceOrientation enum.

## Discussion

Discussion This method is called during two-step rotation animations only. Subclasses can override this method and use it to adjust their views between the first and second half of the animations. This method is called outside of any animation transactions and while any header or footer views are offscreen.

## See Also

### Deprecated methods

- [setOverrideTraitCollection(_:forChild:)](uikit/uiviewcontroller/setoverridetraitcollection(_:forchild:).md)
- [overrideTraitCollection(forChild:)](uikit/uiviewcontroller/overridetraitcollection(forchild:).md)
- [attemptRotationToDeviceOrientation()](uikit/uiviewcontroller/attemptrotationtodeviceorientation().md)
- [registerForPreviewing(with:sourceView:)](uikit/uiviewcontroller/registerforpreviewing(with:sourceview:).md)
- [unregisterForPreviewing(withContext:)](uikit/uiviewcontroller/unregisterforpreviewing(withcontext:).md)
- [automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers](uikit/uiviewcontroller/automaticallyforwardappearanceandrotationmethodstochildviewcontrollers.md)
- [canPerformUnwindSegueAction(_:from:withSender:)](uikit/uiviewcontroller/canperformunwindsegueaction(_:from:withsender:).md)
- [didRotate(from:)](uikit/uiviewcontroller/didrotate(from:).md)
- [dismissModalViewControllerAnimated:](uikit/uiviewcontroller/dismissmodalviewcontrolleranimated:.md)
- [dismissMoviePlayerViewControllerAnimated()](uikit/uiviewcontroller/dismissmovieplayerviewcontrolleranimated().md)
- [forUnwindSegueAction(_:from:withSender:)](uikit/uiviewcontroller/forunwindsegueaction(_:from:withsender:).md)
- [presentModalViewController:animated:](uikit/uiviewcontroller/presentmodalviewcontroller:animated:.md)
- [presentMoviePlayerViewControllerAnimated(_:)](uikit/uiviewcontroller/presentmovieplayerviewcontrolleranimated(_:).md)
- [rotatingFooterView()](uikit/uiviewcontroller/rotatingfooterview().md)
- [rotatingHeaderView()](uikit/uiviewcontroller/rotatingheaderview().md)
