设置preferredContentSize不会触发preferredContentSizeDidChangeForChildContentContainer:

joh*_*Mac 5 ios ios8

视图控制器X呈现视图控制器Y.

Y.modalPresentationStyle = UIModalPresentationFormSheet
[X presentViewController:Y...]
Run Code Online (Sandbox Code Playgroud)

在呈现时,Y呈现另一个视图控制器Z.

Z.modalPresentationStyle = UIModalPresentationCurrentContext
[Y presentViewController:Z...]
Run Code Online (Sandbox Code Playgroud)

呈现后,Z将其preferredContentSize设置为不同的大小.不应该是preferredContentSizeDidChangeForChildContentContainer:在Y或X上调用?它不是,我想知道为什么.

谢谢