in my project I used datepicker and in the iOS part while I am choosing a date, datepicker triggers the DateSelected method without tapping 'Done' button. Is there any solution?
Asked
Active
Viewed 412 times
0
-
That is the default behavior for iOS. You would need to create a [custom renderer](https://stackoverflow.com/a/40138648/3850012) to capture the **Done** button clicks. – hvaughan3 Sep 13 '17 at 13:51
-
Yes, it works, thanks :) – Oguzhan Orhan Sep 14 '17 at 09:33
-
@OguzhanO did my answer help you ?if you solved the issue please mark it as answer ,thanks . – ColeX Sep 14 '17 at 16:03
-
@ColeXia I used custom renderer for the Done button, this solved my answer. – Oguzhan Orhan Sep 18 '17 at 07:05
1 Answers
1
As @hvaughan3 mentioned , this is the default behavior for iOS.
On DatePicker control you can capture
DateSelected : fires everytime when change the date
Unfocused : fires when click Done button or focus another control.
You can use Unfocused to implement your requirement.

ColeX
- 14,062
- 5
- 43
- 240