简体   繁体   中英

How to make dynamic y position of view from storyboard using auto layout

Is it possible to set dynamic y position of UiView through storyboard using auto layout?

I have one UIView which I want to set the y position of 1/3rd of the total Screen height.

thanks in advance

Create it like this by hooking top constraint = bottom with multiplier of 1/3

在此处输入图片说明

Or top = centerY with multiplier of 2/3

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM