Multiple pickerviews with multiple textfield inputviews Swift

微笑、不失礼 提交于 2019-12-03 06:39:17

You're using the picker views' tag property to decide which array is the data source for a given picker view, but you didn't set the tags initially. The tag defaults to zero, so all four picker views are showing the same data. After instantiating your picker views, add this:

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