title: UIDatePicker as a Inputview to UITextField
body: <p>In my code i have used Datepicker as a Inputview to Textfield</p>
  
  <pre><code>self.tFPeriodEndCurrent.inputView = self.datePicker
  </code></pre>
  
  <p>textfield delegates won't work because Textfield is not editable.</p>
  
  <p>i need to update text(date) in textfield to UIPicker input view when ever user clicked on Textfield</p>
  
  <pre><code>//assume textfield contains 20/2/2019 , that should reflect in UIdatepicker when user Tap on textfield. 
  how to acheive that! any help
  </code></pre>