I am having a textfield which when tapped pops up a date picker and and the selected date is displayed in the textfield.
my problem is i want todays date to be displayed in the textfield by default before the user tap the textfield. later the user can change it by tapping and selecting someother date according to his requirement.
if I got your idea correctly, you need to use placeholder property of the textfield
Placeholder value will be displayed in textfield, while it’s value is empty.