IOS stackview addArrangedSubview add at specific index

我的未来我决定 提交于 2020-01-12 06:30:47

问题


How is it possible to add a arranged subview in a particular index in a UIStackView?

something like:

stackView.addArrangedSubview(nibView, atIndex: index)

回答1:


You mean you want to insert, not add:

func insertArrangedSubview(_ view: UIView, atIndex stackIndex: Int)


来源:https://stackoverflow.com/questions/34434218/ios-stackview-addarrangedsubview-add-at-specific-index

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!