简体   繁体   中英

How can I add views next to each other in a scroll view in IOS?

I want to add views in a Scrollview in a for loop. How can I add these views so that each item places next to each other like Linear Layout (Horizontal) in Android?

从iOS 9+开始,您可以使用UIStackView来实现这种线性布局。

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