<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/uiviewcontroller-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Symbols that view controllers no longer support.

## Topics

### Deprecated methods

[`func setOverrideTraitCollection(UITraitCollection?, forChild: UIViewController)`](/documentation/UIKit/UIViewController/setOverrideTraitCollection(_:forChild:))

Changes the traits assigned to the specified child view controller.

[`func overrideTraitCollection(forChild: UIViewController) -> UITraitCollection?`](/documentation/UIKit/UIViewController/overrideTraitCollection(forChild:))

Retrieves the trait collection for a child view controller.

[`class func attemptRotationToDeviceOrientation()`](/documentation/UIKit/UIViewController/attemptRotationToDeviceOrientation())

Attempts to rotate all windows to the orientation of the device.

[`func registerForPreviewing(with: any UIViewControllerPreviewingDelegate, sourceView: UIView) -> any UIViewControllerPreviewing`](/documentation/UIKit/UIViewController/registerForPreviewing(with:sourceView:))

Registers a view controller to participate with 3D Touch preview (peek) and commit (pop).

[`func unregisterForPreviewing(withContext: any UIViewControllerPreviewing)`](/documentation/UIKit/UIViewController/unregisterForPreviewing(withContext:))

Unregisters a previously registered view controller identified by its context object.

[`- (BOOL) automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers;`](/documentation/UIKit/UIViewController/automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers)

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

[`func canPerformUnwindSegueAction(Selector, from: UIViewController, withSender: Any) -> Bool`](/documentation/UIKit/UIViewController/canPerformUnwindSegueAction(_:from:withSender:))

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

[`- (void) didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation;`](/documentation/UIKit/UIViewController/didAnimateFirstHalfOfRotationToInterfaceOrientation:)

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

[`func didRotate(from: UIInterfaceOrientation)`](/documentation/UIKit/UIViewController/didRotate(from:))

Sent to the view controller after the user interface rotates.

[`- (void) dismissModalViewControllerAnimated:(BOOL) animated;`](/documentation/UIKit/UIViewController/dismissModalViewControllerAnimated:)

Dismisses the view controller that was presented by the receiver.

[`func dismissMoviePlayerViewControllerAnimated()`](/documentation/UIKit/UIViewController/dismissMoviePlayerViewControllerAnimated())

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

[`func forUnwindSegueAction(Selector, from: UIViewController, withSender: Any?) -> UIViewController?`](/documentation/UIKit/UIViewController/forUnwindSegueAction(_:from:withSender:))

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

[`- (void) presentModalViewController:(UIViewController *) modalViewController animated:(BOOL) animated;`](/documentation/UIKit/UIViewController/presentModalViewController:animated:)

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

[`func presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController!)`](/documentation/UIKit/UIViewController/presentMoviePlayerViewControllerAnimated(_:))

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

[`func rotatingFooterView() -> UIView?`](/documentation/UIKit/UIViewController/rotatingFooterView())

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

[`func rotatingHeaderView() -> UIView?`](/documentation/UIKit/UIViewController/rotatingHeaderView())

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

[`func segueForUnwinding(to: UIViewController, from: UIViewController, identifier: String?) -> UIStoryboardSegue?`](/documentation/UIKit/UIViewController/segueForUnwinding(to:from:identifier:))

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

[`func shouldAutomaticallyForwardRotationMethods() -> Bool`](/documentation/UIKit/UIViewController/shouldAutomaticallyForwardRotationMethods())

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

[`- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation;`](/documentation/UIKit/UIViewController/shouldAutorotateToInterfaceOrientation:)

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

[`- (void) viewDidUnload;`](/documentation/UIKit/UIViewController/viewDidUnload)

Called when the controller’s view is released from memory.

[`- (void) viewWillUnload;`](/documentation/UIKit/UIViewController/viewWillUnload)

Called just before releasing the controller’s view from memory.

[`- (void) willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation) toInterfaceOrientation duration:(NSTimeInterval) duration;`](/documentation/UIKit/UIViewController/willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:)

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

[`func willAnimateRotation(to: UIInterfaceOrientation, duration: TimeInterval)`](/documentation/UIKit/UIViewController/willAnimateRotation(to:duration:))

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

[`- (void) willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation) fromInterfaceOrientation duration:(NSTimeInterval) duration;`](/documentation/UIKit/UIViewController/willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:)

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

[`func willRotate(to: UIInterfaceOrientation, duration: TimeInterval)`](/documentation/UIKit/UIViewController/willRotate(to:duration:))

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

### Deprecated properties

[`var shouldAutorotate: Bool`](/documentation/UIKit/UIViewController/shouldAutorotate)

A Boolean value that indicates whether the view controller’s contents should autorotate.

[`var previewActionItems: [any UIPreviewActionItem]`](/documentation/UIKit/UIViewController/previewActionItems)

The quick actions displayed when a user swipes upward on a 3D Touch preview.

[`var automaticallyAdjustsScrollViewInsets: Bool`](/documentation/UIKit/UIViewController/automaticallyAdjustsScrollViewInsets)

A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.

[`var bottomLayoutGuide: any UILayoutSupport`](/documentation/UIKit/UIViewController/bottomLayoutGuide)

Indicates the lowest vertical extent for your onscreen content, for use with Auto Layout constraints.

[`@property (nonatomic, readwrite) CGSize contentSizeForViewInPopover;`](/documentation/UIKit/UIViewController/contentSizeForViewInPopover)

The size of the view controller’s view while displayed in a popover.

[`var interfaceOrientation: UIInterfaceOrientation`](/documentation/UIKit/UIViewController/interfaceOrientation)

Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen.

[`var isModalInPopover: Bool`](/documentation/UIKit/UIViewController/isModalInPopover)

A Boolean value indicating whether the view controller should be presented modally by a popover.

[`@property (nonatomic, readonly, nullable) UIViewController * modalViewController;`](/documentation/UIKit/UIViewController/modalViewController)

The controller for the active presented view’that is, the view that is temporarily displayed on top of the view managed by the receiver.

[`var searchDisplayController: UISearchDisplayController?`](/documentation/UIKit/UIViewController/searchDisplayController)

The search display controller associated with the view controller.

[`var topLayoutGuide: any UILayoutSupport`](/documentation/UIKit/UIViewController/topLayoutGuide)

Indicates the highest vertical extent for your onscreen content, for use with Auto Layout constraints.

[`@property (nonatomic, assign) BOOL wantsFullScreenLayout;`](/documentation/UIKit/UIViewController/wantsFullScreenLayout)

A Boolean value indicating whether the view should underlap the status bar.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)