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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -