I'm having an issue with constraints. I set constraints on my UI elements that you can see below. For each I set x, y, and height/width for some. When I click "Update the Frames", everything is ok and the views are placed at the right place. But on the Preview (right window on the screenshot) and in the simulator, the views are not placed correctly and there is nothing on the screen. When I launch the app on the simulator, I have no warning in the debug console saying that there are constraints conflicts. Same in Xcode, no warning and no error.
Here are my View controller and the set constraints. You can see on the right, the preview for several devices.
Aucun commentaire:
Enregistrer un commentaire