autolayout - iOS auto-layout constraints -
I'm not sure how to set me some obstacles in my auto-layout storyboard in iOS.
< P> I have a text box and a button next to it, which is constrained for each other, and both of them are constrained on either side of their supervision by 20. It works great for the iPhone / iPod. The iPad is growing up, however, the textbox is very wide, is there any way to set the "max width" on the text box to allow some increments, and allow that point to interrupt supervision?It seems that I am coming to all this is wrong, do I have a wrong attitude?
constraint
You can set an obstacle For "less than or equal to x" (whatever your value is x).
Then the pair that is "20 is the same as the back side of your supervision".
Conflict
This will not work because it is though that supervision is very detailed, it will create a conflict.
Preferences
What you can do, however, the lack of "edge of space" is given priority to the width of the minimum, at least 1 priority is given .
So if the width is decreased to a priority of 750 (which is the default), then the barrier of the location should be given preference of 749.
It has the effect of saying its own autolayout. "If there is a conflict, remove the barrier of space and break breadth prevention systematically."
Comments
Post a Comment