UIViewController.ProvidesPresentationContextTransitionStyle 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 的轉換樣式是由呈現 UIViewController 的 ModalTransitionStyle 屬性所決定。 如果這個 ProvidesPresentationContextTransitionStyle 屬性設定為 true
,轉換樣式是由呈現 UIViewController 的 ModalTransitionStyle 屬性所決定。