From ab252db14264cab96cd5eeb70f78a74e0429f173 Mon Sep 17 00:00:00 2001 From: kamu Date: Thu, 6 Sep 2018 12:42:40 +0900 Subject: [PATCH] fix PickerCell --- SettingsView.iOS/Cells/PickerCellRenderer.cs | 5 +++++ nuget/SettingsView_mac.nuspec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SettingsView.iOS/Cells/PickerCellRenderer.cs b/SettingsView.iOS/Cells/PickerCellRenderer.cs index c4c0ad4..b7baee2 100644 --- a/SettingsView.iOS/Cells/PickerCellRenderer.cs +++ b/SettingsView.iOS/Cells/PickerCellRenderer.cs @@ -150,6 +150,11 @@ protected override void Dispose(bool disposing) _notifyCollection.CollectionChanged -= ItemsSourceCollectionChanged; _notifyCollection = null; } + if (_selectedCollection != null) + { + _selectedCollection.CollectionChanged -= SelectedItems_CollectionChanged; + _selectedCollection = null; + } } base.Dispose(disposing); } diff --git a/nuget/SettingsView_mac.nuspec b/nuget/SettingsView_mac.nuspec index 505c5ba..944d9c0 100644 --- a/nuget/SettingsView_mac.nuspec +++ b/nuget/SettingsView_mac.nuspec @@ -2,7 +2,7 @@ AiForms.SettingsView - 0.2.9 + 0.3.0 SettingsView for Xamarin.Forms kamu kamu @@ -16,7 +16,7 @@ There are various cells such as (LabelCell,ButtonCell,CommandCell,SwitchCell,Che ## Bug fixes -* [PickerCell] When the SelectedItems is changed programmatically, the new value text is not shown. (#16) +* [PickerCell] When opening two times, a null exception occurs. (#39) Xamarin.Forms TableView Cell Setting Configuration Option ListView UITableView RecyclerView ReOrder DragDrop en-US