I have a UITableViewController for searching and user can make a search by date , but I want to let it optional, my problem is that I don't know how to do to reset the UITableViewController after selecting a date, because the UIDatePicker will always let the user choose a new date but not resetting the choosen one here is some screen shots :
as you can see be default the values are "Tous" which means "All" so the user can let it like that and all fields are optional
and now when you choose the date cell , you are now obliged to choose a date and there is no way to reset the field as you can see
now there is no way to make it the value of the date field to back to "All" , in the other fields since they are strings I just added "Tous" ("All") with the other choices so the user can back to it whenever he wants as you can see here :
I don't know how to add an option to the date picker , maybe adding a new button like "today" to reset the field , so you know the problem any one can help please ?