如何使用UIPickerView在UILabel上显示具有不同数组的第二个组件

时间:2018-06-08 07:03:40

标签: uipickerview swift4.1 xcode9.3

我的UIPickerView中有两个具有不同数组的组件

我可以在标签上显示第一个组件,但是当它尝试添加第二个组件时,它总是被压碎

有人可以帮助我,我现在被困在这里2天

这是我的代码:

1.数组

OleDbConnection

2.她是我的协议代码

let firstArray = ["Daily", "Weekly", "Monthly", "Yearly"]
let secondArray = ["first", "Second", "Third", "Fourth", "Last"]
let thirdArray = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
let fourthArray = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
var lastSelectedArray = 0 

}

我真的不知道如何处理第二个组件。我希望你们能帮我解决这个问题:'(

0 个答案:

没有答案