UIViewController.IsBeingPresented Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
true
if the current UIViewController is in the process of being presented.
public virtual bool IsBeingPresented { [Foundation.Export("isBeingPresented")] get; }
member this.IsBeingPresented : bool
Property Value
true
only if called during the execution of ViewWillAppear(Boolean) or ViewDidAppear(Boolean).
- Attributes
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
- <xref:UIKit.UIViewController.ViewWillAppear>
- <xref:UIKit.UIViewController.ViewDidAppear>
- IsMovingToParentViewController