I\'m a complete beginner on iOS dev and I want to create a little iOS application. On this application, 3 UIPickerViews are supposed to display different data.
UIPickerViews
You don't need tags, just use:
func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int{ if pickerView == pickerView1 { //pickerView1 } else if pickerView == pickerView2{ //pickerView2 }
also don't forget to set delegate in IB or in code:
pickerView1.delegate = self