is it possible to populate an equation in the "Constant" attribute located in the storyboard inspector , instead of a direct constant
and if so, can you write me an example of doing so?
tnx ;)
is it possible to populate an equation in the "Constant" attribute located in the storyboard inspector , instead of a direct constant
and if so, can you write me an example of doing so?
tnx ;)
For basic constraint "equations" you can often use the multiplier.
For your specific example, ""SuperView.Width/3" for an "Equal Width" constraint", set the view's width equal to the superView's width, then enter either 0.33333
or 1:3
as the multiplier:
Now your subview will always be 1/3rd the width of its superView.