简体   繁体   中英

Align items in horizontal UIStackView from the center

这就是我现在所拥有的

Hi all:) There is a situation when I need to align items in the UIStackView from the center. So if there is 2, 3, 4 (no matter how many) they should be aligned from the center, not from the left/right side etc. Is it possible to implement? I have parent vertical stackView and 2 nested horizontal stackviews with UIImageViews inside.

Set parent UIStackView (vertical stackView) alignment to center. 在此处输入图像描述

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