Share via


UIViewController.ProvidesPresentationContextTransitionStyle 屬性

定義

true 如果這會 UIViewController 覆寫其呈現的 轉換 UIViewController 樣式,則為 。

public virtual bool ProvidesPresentationContextTransitionStyle { [Foundation.Export("providesPresentationContextTransitionStyle")] get; [Foundation.Export("setProvidesPresentationContextTransitionStyle:")] set; }
member this.ProvidesPresentationContextTransitionStyle : bool with get, set

屬性值

預設值為 false

屬性

備註

如果保留 false 預設值,則呈現 UIViewController 的轉換樣式是由呈現 UIViewControllerModalTransitionStyle 屬性所決定。 如果這個 ProvidesPresentationContextTransitionStyle 屬性設定為 true ,轉換樣式是由呈現 UIViewControllerModalTransitionStyle 屬性所決定。

適用於