简体   繁体   中英

How to add constraints to the following two buttons

I have the following View which contains two buttons and a date picker and I am using AutoLayout.

在此处输入图片说明

Both buttons have 0 space for bottom, top, leading and trailing edge. How can I set constraints to the buttons so that they look like in the picture.

I tried setting 0 for leading, trailing, bottom and top and set fixed height, but one buttons has the width bigger than the other one.

I want them to have same width. Any ideas how can fix this ?

Ctrl +从一个按钮拖动到另一个按钮,然后添加“等宽”约束。

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