diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-09-08 17:00:57 -0500 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-09-08 15:00:57 -0700 |
commit | 420ceb37d0d1d78dde17c717614c6874684a399e (patch) | |
tree | 1023f9e0fea4c05587c1fab8c7a8586bb50a0751 /Xamarin.Forms.Platform.iOS/Renderers | |
parent | 36822e614d6be3fa033410d87408c404288db4c3 (diff) | |
download | xamarin-forms-420ceb37d0d1d78dde17c717614c6874684a399e.tar.gz xamarin-forms-420ceb37d0d1d78dde17c717614c6874684a399e.tar.bz2 xamarin-forms-420ceb37d0d1d78dde17c717614c6874684a399e.zip |
[iOS] Adjust Started/Ended hooks in pickers for iOS 10 (#339)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers')
3 files changed, 8 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs index a591243c..d4ba00e7 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs @@ -48,8 +48,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIDatePicker { Mode = UIDatePickerMode.Date, TimeZone = new NSTimeZone("UTC") }; diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs index bebf91cf..069fc026 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs @@ -37,8 +37,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIPickerView(); diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs index f8529800..c64ce8fb 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs @@ -32,8 +32,8 @@ namespace Xamarin.Forms.Platform.iOS { if (disposing) { - Control.Started -= OnStarted; - Control.Ended -= OnEnded; + Control.EditingDidBegin -= OnStarted; + Control.EditingDidEnd -= OnEnded; _picker.ValueChanged -= OnValueChanged; } @@ -49,8 +49,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIDatePicker { Mode = UIDatePickerMode.Time, TimeZone = new NSTimeZone("UTC") }; |