iOS Guides | Samples

MonoTouch.UIKit.UIContentContainer Class

With IUIContentContainer and UIContentContainer_Extensions defines the protocol for UIViewControllers as they experience changes in size and traits (see UIViewController.TraitCollection).

See Also: UIContentContainer

Syntax

[MonoTouch.Foundation.Model]
[MonoTouch.Foundation.Protocol]
[MonoTouch.Foundation.Register("UIContentContainer", false)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public abstract class UIContentContainer : NSObject, IUIContentContainer, IDisposable

Related content

Requirements

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

The members of MonoTouch.UIKit.UIContentContainer are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
abstract
PreferredContentSizeSizeF. Gets the preferred size for the content of the container.

Public Methods

abstract
GetSizeForChildContentContainer(IUIContentContainer, SizeF) : SizeF
Gets the size of the content of the specified child IUIContentContainer by using the size of the parent container.
abstract
PreferredContentSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this controller that the preferred size for content for a specified child container has changed.
abstract
SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)
Notifies this container that auto layout resized a specified child container.
abstract
ViewWillTransitionToSize(SizeF, IUIViewControllerTransitionCoordinator)
Notifies this that the size of it's view will change to the specified value, as coordinated by coordinator.
abstract
WillTransitionToTraitCollection(UITraitCollection, IUIViewControllerTransitionCoordinator)
Notifies this that its trait collection will change to traitCollection, as coordinated by coordinator.