title: Hide UIPicker after Selection
body: <p>I have a UIPicker and I want to save selection and hide it after selection. I  can't find a way to do this. 
  Can I do this without a "Save" button? Can I just save the selection pressing on the row?
  Currently I press a button to make the picker appear ( picker.isHidden = false), but then it stays after selection has been made.</p>
  
  <pre><code>  //Picker
  
  func numberOfComponents(in pickerView: UIPickerView) -&gt; Int {
      return 1
  }
  
  func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
      return fiatArray.count
  }
  
  func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String? {
      return fiatArray[row]
  }
  
  func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
  
      displayConvertedValues(forSelected: row)
  
  }
  
  func displayConvertedValues(forSelected row :Int) {
  
      let chosenfiat = fiatArray[row]
      getData(fiat: chosenfiat)
      tableView.reloadData()
  }
  </code></pre>