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

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -