Edit

Share via


UIViewController.Unwind(UIStoryboardSegue, UIViewController) Method

Definition

Called during an unwind segue on any UIViewController objects in the unwind path.

[Foundation.Export("unwindForSegue:towardsViewController:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void Unwind (UIKit.UIStoryboardSegue unwindSegue, UIKit.UIViewController subsequentVC);
abstract member Unwind : UIKit.UIStoryboardSegue * UIKit.UIViewController -> unit
override this.Unwind : UIKit.UIStoryboardSegue * UIKit.UIViewController -> unit

Parameters

unwindSegue
UIStoryboardSegue

Holds the in-process unwind UIStoryboardSegue.

subsequentVC
UIViewController

The next UIViewController in the direction of the unwind.

Attributes

Remarks

This method is called on each UIViewController in the unwind UIStoryboardSegue path.

When overridden in container UIViewController classes, this method is responsible for configuring the container to properly display the subsequentVC. In a container UIViewController that displayed a tab bar, for instance, this method would be used to set the tab item to match the subsequentVC.

UIViewController classes that are not containers should not override this method.

Applies to