編輯

共用方式為


UINavigationController.VisibleViewController Property

Definition

The view controller whose view is currently on the screen.

public virtual UIKit.UIViewController VisibleViewController { [Foundation.Export("visibleViewController", ObjCRuntime.ArgumentSemantic.Strong)] get; }
member this.VisibleViewController : UIKit.UIViewController

Property Value

Attributes

Remarks

This will be either the view controller at the top of the stack, or one that was presented modally.

Applies to