title: How can I implement multiple UIPickerView in a single page?
body: <p>I am implementing <code>UIPickerView</code> in a text field as below:</p>
  
  <pre><code>public func numberOfComponents(in pickerView: UIPickerView) -&gt; Int{
      return 1
  }
  
  public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
      return states.count // states is an array of strings
  }
  
  func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String? {
      return states[row]
  }
  
  func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
      textField.text = states[row]
      self.view.endEditing(false)
  }
  </code></pre>
  
  <p>I want to have another textfield that implement <code>UIPickerView</code>. How should I do it? Can I alter the methods implemented above to include both text fields?</p>