Resize the presented controller due to content changes when presenting UIModalPresentationFormSheet in iOS8

I have a controller presented where:

modalPresentationStyle = UIModalPresentationFormSheet;


Before submission, I installed

preferredContentSize = CGSizeMake(400, 400);


Then the content of the presented VC changes and I need to change its height using animation. Steps:

self.view.superview.bounds = newBounds;


Now not working, Apple submitted UIPresentationController

and I can't figure out how to use it to resize an already submitted VC.


source to share

All Articles