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

Property Value

Used primarily when displaying a view controller’s content.

Applies to