简体   繁体   中英

UIStackView Sub StackViews with Different widths and different heights

Hi I am new to UISTackView concept , I know iOS 9 is still in beta. I have a UIStackView fills entire screen, stackview contains a number of sub UISTackViews (Nested UIStack views) , that sub UIStackViews having different heights , widths , different sizes , different centers , different margins it's just like random .

How can I achieve this?

It's a bit unclear what you're trying to achieve, so if you could clarify your question that would be helpful.

In interface builder, you can simple hold command and select all the items you want to add to a stack view and then click the stack button at the bottom right of the screen. (It's the left most of the three, and looks like a stack).

Then if you add other elements, you can command select everything, including another stack view and click the stack view button again. This will put everything within an even larger stack view. You can continue doing this over and over.

Cheers!

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