草庐IT

UIContentContainer

全部标签

ios - 在 Swift 中检查 UIContentContainer 是否为 ViewContoller

我正在翻译Apple的示例CustomViewControllerPresentationsandTransitions(特别是AAPLCustomPresentationController)到Swift中,我遇到了一个问题。在他们的preferredContentSizeDidChangeForChildContentContainer方法(第190行)中,他们检查-(void)preferredContentSizeDidChangeForChildContentContainer:(id)container{[superpreferredContentSizeDidChange