[iOS] Adjust Started/Ended hooks in pickers for iOS 10 (#339)

This commit is contained in:
Paul DiPietro 2016-09-08 17:00:57 -05:00 коммит произвёл Jason Smith
Родитель 36822e614d
Коммит 420ceb37d0
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -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") };

Просмотреть файл

@ -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();

Просмотреть файл

@ -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") };