title: Swift IOS - Using UIPickerView AND Keyboard
body: <p>In my app when user clicks on UITextField he should be able to pick up a value from UIPickerView OR enter his own value using keyboard.</p>
  
  <p>What's the best way of doing it in terms of user experience and ease of implementation?</p>
  
  <p>UIPickerView with toolbar is already implemented.</p>
  
  <p>I'd appreciate both advice on best way of doing it and example code of switching keyboard &lt;-> pickerview.</p>
  
  <p>I've tried adding a button "Show keyboard" on pickerview's toolbar and adding the following code:</p>
  
  <pre><code>func showKeyboard() {
      selectedTextField.inputView = nil
  }
  </code></pre>
  
  <p>But clicking this button doesn't do anything. Also I'm not sure it's a good way in terms of UX.</p>