问题
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