TKSideDrawer for Xamarin.iOS: Selection
Handling item selection in TKSideDrawer
is as simple as adopting TKSideDrawerDelegate
and implementing its DidSelectItem
method. Use the passed NSIndexPath
to determine which item was selected and take the appropriate action:
public override void DidSelectItem (TKSideDrawer sideDrawer, NSIndexPath indexPath)
{
Console.WriteLine ("Selected item in section: {0} at index: {1}", indexPath.Section, indexPath.Row);
}