Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何根据用户的需要更改堆栈视图中照片的顺序(水平和垂直)?
繁琐的方法是使用
addArrangedSubview() insertArrangedSubview() removeArrangedSubview()
如果您有更多时间,我会考虑研究 UICollectionView,它比 StackViews 具有更大的灵活性,尤其是对于重新排列之类的事情。