ios - how to define constraint for equal width & height with aspect ratio? -


i want add square in app height & width. height & width should vary screen size. same time should in center of screen.

please tell me constraint should use?

i have sued equal height(0.7 multiplier), equal width(0.5) multiplier & aspect ratio & have aligned view in center. error conflicting constraints.

please suggest how it?


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -