Set preferredContentSize does not start preferredContentSizeDidChangeForChildContentContainer:

Viewing controller X represents a controller of type Y.

Y.modalPresentationStyle = UIModalPresentationFormSheet [X presentViewController:Y...] 

When presenting, Y represents another view controller, Z.

 Z.modalPresentationStyle = UIModalPresentationCurrentContext [Y presentViewController:Z...] 

After submission, Z sets its preferredContentSize in a different size. Should not useContentSizeDidChangeForChildContentContainer: call on Y or X? This is not so, and I wonder why.

thanks

+5
source share

Source: https://habr.com/ru/post/1204593/


All Articles