UIViewController.IsBeingPresented UIViewController.IsBeingPresented Property

Definition

true if the current UIViewController is in the process of being presented.

[get: Foundation.Export("isBeingPresented")]
public virtual bool IsBeingPresented { get; }
member this.IsBeingPresented : bool

Property Value

true only if called during the execution of ViewWillAppear(Boolean) or ViewDidAppear(Boolean).

Remarks

The presentation process is bookended by the functions ViewWillAppear(Boolean) and ViewDidAppear(Boolean). While those are executing, this property will return true, at all other times, it will return false.

Applies to

See also