简体   繁体   中英

Why is it asking me for a Y position or a height? How can I fix it?

This is a very basic question and I am just not being able to fix it.

I am just trying to have two equal sized views on my scene. And I've set the constraints on both and having the:

  • vertical distance between them be 0
  • Both leading and trailing set at 0 with the safe areas
  • Top view align top to safe area
  • Bottom view align bottom to safe area

I have attached two screenshots below showing what I have:

在此处输入图片说明

在此处输入图片说明

I have also attempted to set them to equal heights

在此处输入图片说明

Here are the constraints you must add to both of your views.

在此处输入图片说明

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