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


[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


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

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

PreferredContentSizeSizeF. Gets the preferred size for the content of the container.

Public Methods

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