UIKit.UIViewController.GetViewControllerForUnwind Method
Used for searching child UIKit.UIViewControllers for a specific unwind segue.

Syntax

[Foundation.Export("viewControllerForUnwindSegueAction:fromViewController:withSender:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual UIViewController GetViewControllerForUnwind (ObjCRuntime.Selector segueAction, UIViewController fromViewController, Foundation.NSObject sender)

Parameters

segueAction
The initiating action.
fromViewController
The initial UIKit.UIViewController.
sender
The initiating object.

Returns

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

Remarks

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0