Package apple.uikit.protocol
Interface UIContentContainer
-
- All Known Implementing Classes:
ABNewPersonViewController,ABPeoplePickerNavigationController,ABPersonViewController,ABUnknownPersonViewController,ADInterstitialAdPresentationViewController,ASAccountAuthenticationModificationViewController,ASCredentialProviderViewController,AUViewController,AVPlayerViewController,CABTMIDICentralViewController,CABTMIDILocalPeripheralViewController,CNContactPickerViewController,CNContactViewController,EKCalendarChooser,EKEventEditViewController,EKEventViewController,FPUIActionExtensionViewController,GCEventViewController,GKAchievementViewController,GKFriendRequestComposeViewController,GKGameCenterViewController,GKLeaderboardViewController,GKMatchmakerViewController,GKTurnBasedMatchmakerViewController,GLKViewController,ILClassificationUIExtensionViewController,INUIAddVoiceShortcutViewController,INUIEditVoiceShortcutViewController,MCBrowserViewController,MFMailComposeViewController,MFMessageComposeViewController,MPMediaPickerController,MPMoviePlayerViewController,MSMessagesAppViewController,MSStickerBrowserViewController,PHPickerViewController,PKAddPassesViewController,PKAddPaymentPassViewController,PKAddSecureElementPassViewController,PKPaymentAuthorizationViewController,QLPreviewController,RPBroadcastActivityViewController,RPPreviewViewController,SFSafariViewController,SKCloudServiceSetupViewController,SKStoreProductViewController,SLComposeServiceViewController,SLComposeViewController,TWTweetComposeViewController,UIActivityViewController,UIAlertController,UICloudSharingController,UICollectionViewController,UIColorPickerViewController,UIDocumentBrowserViewController,UIDocumentMenuViewController,UIDocumentPickerExtensionViewController,UIDocumentPickerViewController,UIFontPickerViewController,UIImagePickerController,UIInputViewController,UINavigationController,UIPageViewController,UIPopoverPresentationController,UIPresentationController,UIReferenceLibraryViewController,UISearchContainerViewController,UISearchController,UISplitViewController,UITabBarController,UITableViewController,UIVideoEditorController,UIViewController,VNDocumentCameraViewController
public interface UIContentContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CGSizepreferredContentSize()voidpreferredContentSizeDidChangeForChildContentContainer(UIContentContainer container)CGSizesizeForChildContentContainerWithParentContainerSize(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.voidsystemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container)Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout.voidviewWillTransitionToSizeWithTransitionCoordinator(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).voidwillTransitionToTraitCollectionWithTransitionCoordinator(UITraitCollection newCollection, UIViewControllerTransitionCoordinator coordinator)This method is called when the view controller's trait collection is changed by its parent.
-
-
-
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.
-
-