的高級用法我想用UIStackView 達到這個我知道這是可能通過激活和停用一些限制使用在.swift文件中的條件代碼/有條件限制。 如何使用UIStackViews實現這一目標? 以下是我想要達到的結果。 1) Space must be constant between small gray dots i.e. spacing value 12
2) Size of the small do
我試圖在我的應用程序中實現可滾動的stackview,但我不能讓它工作。 screenshot of the screen 當我點擊文本字段,一個uipicker所示。根據所選行(1到15),將一個UIButton添加到堆棧視圖中。 for index in 1...selectedRow+1 {
let button = UIButton()
button.setTitle