ipadframemodalviewcontrollercgrectuimodalpresentationstyle

How to resize a modalViewController with UIModalPresentationPageSheet


I have a modal view controller that I show with UIModalPresentationPageSheet. The problem is that its default size is too large for my content: so I want to resize its frame to adjust accordingly with my content.

Does anyone know of a way/trick to do this?

Thanks.


Solution

  • You can't resize a UIModalPresentationPageSheet because its size is not modifable.