Upravit

Sdílet prostřednictvím


UIPresentationController.AdaptivePresentationStyle Method

Definition

Overloads

AdaptivePresentationStyle()

Gets the presentation style to use when the app changes in size.

AdaptivePresentationStyle(UITraitCollection)

Gets the UIModalPresentationStyle associated with the .

AdaptivePresentationStyle()

Gets the presentation style to use when the app changes in size.

[Foundation.Export("adaptivePresentationStyle")]
public virtual UIKit.UIModalPresentationStyle AdaptivePresentationStyle ();
abstract member AdaptivePresentationStyle : unit -> UIKit.UIModalPresentationStyle
override this.AdaptivePresentationStyle : unit -> UIKit.UIModalPresentationStyle

Returns

Attributes

Applies to

AdaptivePresentationStyle(UITraitCollection)

Gets the UIModalPresentationStyle associated with the .

[Foundation.Export("adaptivePresentationStyleForTraitCollection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIModalPresentationStyle AdaptivePresentationStyle (UIKit.UITraitCollection traitCollection);
abstract member AdaptivePresentationStyle : UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle
override this.AdaptivePresentationStyle : UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle

Parameters

traitCollection
UITraitCollection

Returns

Attributes

Applies to