I'm currently developing an app and I'm still only using the storyboard to develop the interface.
Everything is fine until I try to open a modal window, form sheet presentation. Where it shows me an empty view although I have some test labels and text fields present.
Image 1: view being shown no fields are present
If I open it some other way lets say a simple show it shows me the correct labels in there but not the layout I want.
Image 2: view being shown with the fields
Is there a way around this?
Thank you for any help
edit: view controller settings If I change presentation from form sheet to, for example, full screen, it works but the behaviour is incorrect.
I faced this same issue.
What happened was that I was designing the storyboard in with wR hR as opposed to wAny hAny as the size class. As such all views and constraints were installed in this size class, as opposed to all size classes. When a form sheet is presented modally its size class is not Regular/Regular, consequently the views and constraints are not installed. This also explains why things appear properly when a different presentation style is used.
To fix this issue, ensure that all views and constraints in your form sheet are installed universally, not just for a single size class. The screenshot demonstrates installation settings that will display in a form sheet.

After playing around with the size classes I installed my view and its fields on all size classes. Prior to that I was only using Regular width and height. After some tweaks on the position they were in I managed to get it to work as expected.
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