Interface UIContentContainer

    • Method Detail

      • preferredContentSize

        CGSize preferredContentSize()
      • preferredContentSizeDidChangeForChildContentContainer

        void preferredContentSizeDidChangeForChildContentContainer​(UIContentContainer container)
      • sizeForChildContentContainerWithParentContainerSize

        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. If the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called.
      • systemLayoutFittingSizeDidChangeForChildContentContainer

        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. 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.
      • viewWillTransitionToSizeWithTransitionCoordinator

        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. for the root view controller when its window rotates or is resized). If you override this method, you should either call super to propagate the change to children or manually forward the change to children.
      • willTransitionToTraitCollectionWithTransitionCoordinator

        void willTransitionToTraitCollectionWithTransitionCoordinator​(UITraitCollection newCollection,
                                                                      UIViewControllerTransitionCoordinator coordinator)
        This method is called when the view controller's trait collection is changed by its parent. If you override this method, you should either call super to propagate the change to children or manually forward the change to children.