ios - Constraint "width equals height" in interface builder, for the same view: how to create such a constraint? -



ios - Constraint "width equals height" in interface builder, for the same view: how to create such a constraint? -

i want create constraint "width equals height" for same view (so, view square shaped). method given in this answer not work since not constraint between 2 different views.

is possible?

control + drag view itself, set aspect ratio 1:1.

ios osx interface-builder nslayoutconstraint

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -