简体   繁体   中英

Put margin between elements in IOS stack view

I want a login screen that contain user name and password text field and a button. I add all this fields in a stack view and the margin between the components gone.How can I put margin between elements in IOS stack view?

Select the stackView and set spacing. 在此输入图像描述

在此输入图像描述

UIStackView has a property called Spacing . you can set this property value as per your spacing need.

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