UIViewController.PreferredContentSize Property

Definition

Gets the preferred size for the content of the container.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGSize PreferredContentSize { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("preferredContentSize", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setPreferredContentSize:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.PreferredContentSize : CoreGraphics.CGSize with get, set

Property Value

Used primarily when displaying a view controller’s content.

Attributes

Applies to