Upravit

Sdílet prostřednictvím


UIViewController.PerformSegue(String, NSObject) Method

Definition

Performs the specified UIStoryboardSegue.

[Foundation.Export("performSegueWithIdentifier:sender:")]
public virtual void PerformSegue (string identifier, Foundation.NSObject sender);
abstract member PerformSegue : string * Foundation.NSObject -> unit
override this.PerformSegue : string * Foundation.NSObject -> unit

Parameters

identifier
String

The identifier of the desired UIStoryboardSegue.

sender
NSObject

The object initiating the segue.

This parameter can be null.

Attributes

Remarks

Typically, segues are specified in the storyboard and do not require the application to directly invoke them.

This method will throw an exception if the UIViewController on which it is called was not loaded from a storyboard.

Applies to

See also