Is there a way to prevent a view from being resized if the view controller is presented as a sheet using the method presentViewControllerAsSheet
or using a segue of style "sheet"?
Note that modal/show segues can be implanted to a window controller which can be set as non resizable from the storyboard itself. Segues of type popover are non-resizable by default.
Have you tried setting your sheet view controller's -preferredContentSize
? Failing that, what about adding width and height NSLayoutConstraint
s to the view controller's view on -viewDidLoad
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With