UIViewController.PrepareForSegue(UIStoryboardSegue, NSObject) UIViewController.PrepareForSegue(UIStoryboardSegue, NSObject) Method

Definition

Informs the application that a UIStoryboardSegue is about to be executed.

[Foundation.Export("prepareForSegue:sender:")]
public virtual void PrepareForSegue (UIKit.UIStoryboardSegue segue, Foundation.NSObject sender);
abstract member PrepareForSegue : UIKit.UIStoryboardSegue * Foundation.NSObject -> unit
override this.PrepareForSegue : UIKit.UIStoryboardSegue * Foundation.NSObject -> unit

Parameters

segue
UIStoryboardSegue UIStoryboardSegue

The UIStoryboardSegue that is about to be executed.

sender
NSObject NSObject

The object that initiated the segue.

This parameter can be null.

Remarks

Application developers can override this method to send data to the UIViewController that is the DestinationViewController. Application developers may use the SourceViewController or the sender to further determine the context in which the segue is occurring.

Applies to