Instance Method

willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:

Sent to the view controller before the second half of the user interface rotates.

Declaration

- (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration;

Parameters

fromInterfaceOrientation

The state of the app'€™s user interface orientation before the rotation. The possible values are described in the UIInterfaceOrientation enum.

duration

The duration of the second half of the pending rotation, measured in seconds.

Discussion

The default implementation of this method does nothing.

This method is called from inside the animation block used to finish the view rotation and slide the header and footer views back into position. You can override this method and use it to configure additional animations that should occur during the second half of the view rotation. For example, you could use it to adjust the zoom level of your content, change the scroller position, or modify other animatable properties of your view.

At the time this method is invoked, the interfaceOrientation property is set to the new orientation.

See Also

Methods

- automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers

Returns a Boolean value that indicates whether appearance and rotation methods are forwarded.

Deprecated
- canPerformUnwindSegueAction:fromViewController:withSender:

Called on a view controller to determine whether it wants to respond to an unwind action.

Deprecated
- didAnimateFirstHalfOfRotationToInterfaceOrientation:

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

Deprecated
- didRotateFromInterfaceOrientation:

Sent to the view controller after the user interface rotates.

Deprecated
- dismissModalViewControllerAnimated:

Dismisses the view controller that was presented by the receiver.

Deprecated
- dismissMoviePlayerViewControllerAnimated

Dismisses a movie player view controller using the standard movie player transition.

Deprecated
- viewControllerForUnwindSegueAction:fromViewController:withSender:

Called when an unwind segue action wants to search a container'€™s children for a view controller to handle the unwind action.

Deprecated
+ prepareInterstitialAds

Prepares the iAd framework to display interstitial ads, which may involve prefetching ad assets.

Deprecated
- presentModalViewController:animated:

Presents a modal view managed by the given view controller to the user.

Deprecated
- presentMoviePlayerViewControllerAnimated:

Presents the movie player view controller using the standard movie player transition.

Deprecated
- requestInterstitialAdPresentation

Asks the framework to display an interstitial ad.

Deprecated
- rotatingFooterView

Returns the footer view to transition during an interface orientation change.

Deprecated
- rotatingHeaderView

Returns the header view to transition during an interface orientation change.

Deprecated
- segueForUnwindingToViewController:fromViewController:identifier:

Called when an unwind segue action needs to transition between two view controllers.

Deprecated
- shouldAutomaticallyForwardRotationMethods

Returns a Boolean value indicating whether rotation methods are forwarded to child view controllers.

Deprecated
- shouldAutorotateToInterfaceOrientation:

Returns a Boolean value indicating whether the view controller supports the specified orientation.

Deprecated
- viewDidUnload

Called when the controller'€™s view is released from memory.

Deprecated
- viewWillUnload

Called just before releasing the controller'€™s view from memory.

Deprecated
- willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:

Sent to the view controller before performing the first half of a user interface rotation.

Deprecated
- willAnimateRotationToInterfaceOrientation:duration:

Sent to the view controller before performing a one-step user interface rotation.

Deprecated
- willRotateToInterfaceOrientation:duration:

Sent to the view controller just before the user interface begins rotating.

Deprecated