public interface UIContentContainer
| Modifier and Type | Method and Description |
|---|---|
CGSize |
preferredContentSize() |
void |
preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container) |
CGSize |
sizeForChildContentContainerWithParentContainerSize(UIContentContainer container,
CGSize parentSize)
When the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them.
|
void |
systemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)
Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.
|
void |
viewWillTransitionToSizeWithTransitionCoordinator(CGSize size,
UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's view's size is changed by its parent (i.e.
|
void |
willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection,
UIViewControllerTransitionCoordinator coordinator)
This method is called when the view controller's trait collection is changed by its parent.
|
CGSize preferredContentSize()
void preferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)
CGSize sizeForChildContentContainerWithParentContainerSize(UIContentContainer container, CGSize parentSize)
If the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called.
void systemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)
If the child's view is using auto layout and the -systemLayoutSizeFittingSize: of the view changes, -systemLayoutFittingSizeDidChangeForChildContentContainer: will be sent to the view controller's parent.
void viewWillTransitionToSizeWithTransitionCoordinator(CGSize size, UIViewControllerTransitionCoordinator coordinator)
If you override this method, you should either call super to propagate the change to children or manually forward the change to children.
void willTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)
If you override this method, you should either call super to propagate the change to children or manually forward the change to children.