I\'d like to Display UIDatePicker only when user the UITextField is Clicked. When the date is picked, it should be shown in the same UITextField.I want to implement UIDatePicker
First make userIntraction enable
[txtDOB setUserInteractionEnabled:YES];
and add your picker view as input view of this text filed
[txtDOB setInputView:pickerview]