UIViewController.GetViewControllerForUnwind(Selector, UIViewController, NSObject) UIViewController.GetViewControllerForUnwind(Selector, UIViewController, NSObject) 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)]
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 Selector

The initiating action.

fromViewController
UIViewController UIViewController

The initial UIViewController.

sender
NSObject NSObject

The initiating object.

Returns

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

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