AutoLayout seems to be battling me every step of the way with a view's size.
I have a view controller that I use for user input, and AutoLayout seems unshakeably determined to make my view 667 pixels high.
I've played with many variants of the layout settings, many content hugging and compression resistance combinations, and no matter what I do, AutoLayout finds a way to stretch the view to 667 pixels high.
I use Reveal, an app that shows layout frames, constraints, etc. (revealapp.com)
and it is showing me that the UIPopoverPresentationController is adding its own autoresizing constraints.
Here's how my view should approximately look when presented...
Note that even though I have the "Accept" UIButton set to 30 pixels high with a 1000 priority, AutoLayout is still stretching it to meet it's weird 667 pixel high requirement.
When I run the app, here's how my popover looks...
and when I have Reveal examine the running app, and I narrow it down to the popover, this is what Reveal shows...
Note the UIPopoverPresentationController itself has these constraints on it.
How can I control the constraints being put in by the UIPopoverPresentationController ??
Aucun commentaire:
Enregistrer un commentaire