Editar

Compartilhar via


UIViewController.ShouldPerformSegue(String, NSObject) Method

Definition

Whether the segue should be performed.

[Foundation.Export("shouldPerformSegueWithIdentifier:sender:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldPerformSegue (string segueIdentifier, Foundation.NSObject sender);
abstract member ShouldPerformSegue : string * Foundation.NSObject -> bool
override this.ShouldPerformSegue : string * Foundation.NSObject -> bool

Parameters

segueIdentifier
String

The segue about to be performed.

sender
NSObject

The object that initiated the segue.

Returns

true if the segue should be allowed to perform, false if not.

Attributes

Remarks

Application developers may override this function so that it returns false in order to disable certain segues from executing.

Applies to