Modifier

Partager via


UIViewController.GetViewControllerForUnwind Method

Definition

Used for searching child UIViewControllers for a specific unwind segue.

[Foundation.Export("viewControllerForUnwindSegueAction:fromViewController:withSender:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual UIKit.UIViewController GetViewControllerForUnwind (ObjCRuntime.Selector segueAction, UIKit.UIViewController fromViewController, Foundation.NSObject sender);
abstract member GetViewControllerForUnwind : ObjCRuntime.Selector * UIKit.UIViewController * Foundation.NSObject -> UIKit.UIViewController
override this.GetViewControllerForUnwind : ObjCRuntime.Selector * UIKit.UIViewController * Foundation.NSObject -> UIKit.UIViewController

Parameters

segueAction
Selector

The initiating action.

fromViewController
UIViewController

The initial UIViewController.

sender
NSObject

The initiating object.

Returns

The appropriate UIViewController from amongst the ChildViewControllers or, if none are appropriate, base.GetViewControllerForUnwind(segueAction, fromViewController,sender);.

Attributes

Remarks

A custom contain UIViewController should override this method and call CanPerformUnwind(Selector, UIViewController, NSObject) on the UIViewControllers returned by the ChildViewControllers property. If none return true, the application developer should return the value base.GetViewControllerForUnwind(segueAction,fromViewController,sender);.

Applies to