Bearbeiten

Freigeben über


UIViewController.GetAllowedChildViewControllersForUnwinding Method

Definition

The array of child UIViewController objects that should be searched to determine if they are the unwind segue destination.

[Foundation.Export("allowedChildViewControllersForUnwindingFromSource:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController[] GetAllowedChildViewControllersForUnwinding (UIKit.UIStoryboardUnwindSegueSource segueSource);
abstract member GetAllowedChildViewControllersForUnwinding : UIKit.UIStoryboardUnwindSegueSource -> UIKit.UIViewController[]
override this.GetAllowedChildViewControllersForUnwinding : UIKit.UIStoryboardUnwindSegueSource -> UIKit.UIViewController[]

Parameters

segueSource
UIStoryboardUnwindSegueSource

The UIStoryboardUnwindSegueSource of the unwind segue.

Returns

A subset of ChildViewControllers, ordered by desired search order, and without the controller returned by GetChildViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource).

Attributes

Remarks

When searching for the destination UIViewController of an unwind segue, the operating system climbs up the UIViewController hierarchy using ParentViewController and PresentingViewController, and then searches down the tree using GetAllowedChildViewControllersForUnwinding(UIStoryboardUnwindSegueSource), and CanPerformUnwind(Selector, UIViewController, NSObject) to determine the destination of the unwind segue.

Developers can override this method to filter or change the order of the ChildViewControllers. View controllers are searched in the order of the returned array. The returned array should not contain the UIViewController returned by GetChildViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource).

Applies to