MonoTouch.UIKit.UITraitCollection Class
Holds the horizontal and vertical size classes, as well as the user interface idiom and the display scale.

See Also: UITraitCollection Members

Syntax

[MonoTouch.Foundation.Register("UITraitCollection", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_8_0)]
public class UITraitCollection : MonoTouch.Foundation.NSObject, MonoTouch.Foundation.INSCopying, MonoTouch.Foundation.INSSecureCoding, IDisposable

See Also

UIViewController.TraitCollection

Remarks

This class holds the elements describing the user interface traits to use to render a view or view controller. This contains components like the size class for the vertical or horizontal orientations (which is either compact or regular) as well as the user interface idiom (iPad or iPhone form factor) as well as the display scale.

This is typically used by developers when implementing their own MonoTouch.UIKIt.UIViewController as well by a handful of classes that are UITraitCollection aware, like MonoTouch.UIKIt.UIImage and MonoTouch.UIKIt.UIImageAsset.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0