diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs b/Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs index ca05bc54..7243456b 100644 --- a/Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs +++ b/Xamarin.Forms.Platform.iOS/Extensions/CellExtensions.cs @@ -1,4 +1,5 @@ using System; +using Xamarin.Forms.Internals; #if __UNIFIED__ using Foundation; @@ -20,16 +21,16 @@ namespace Xamarin.Forms.Platform.iOS if (self.RealParent is ListView) { var section = 0; - var til = TemplatedItemsList<ItemsView<Cell>, Cell>.GetGroup(self); + var til = self.GetGroup<ItemsView<Cell>, Cell>(); if (til != null) - section = TemplatedItemsList<ItemsView<Cell>, Cell>.GetIndex(til.HeaderContent); + section = til.HeaderContent.GetIndex<ItemsView<Cell>, Cell>(); - var row = TemplatedItemsList<ItemsView<Cell>, Cell>.GetIndex(self); + var row = self.GetIndex<ItemsView<Cell>, Cell>(); path = NSIndexPath.FromRowSection(row, section); } else if (self.RealParent is TableView) { - var tmPath = TableView.TableSectionModel.GetPath(self); + var tmPath = self.GetPath(); path = NSIndexPath.FromRowSection(tmPath.Item2, tmPath.Item1); } else |