/// <summary> /// A category was clicked. Show all the parts-of-speech results for it /// (including all the actual words :) in a new view (uses UIWebView) /// </summary> public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // show detail var selectedCategory = list[indexPath.Row]; Console.WriteLine("CATEGORY TableViewDelegate.RowSelected: Label={0}", selectedCategory.Name); PartsOfSpeechViewController posvc = new PartsOfSpeechViewController(mvc, selectedCategory); posvc.Title = selectedCategory.Name; Console.WriteLine(" category count: " + indexPath.Row); mvc.NavigationController.PushViewController(posvc, true); }
/// <summary> /// A category was clicked. Show all the parts-of-speech results for it /// (including all the actual words :) in a new view (uses UIWebView) /// </summary> public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // show detail var selectedCategory = list[indexPath.Row]; Console.WriteLine("CATEGORY TableViewDelegate.RowSelected: Label={0}", selectedCategory.Name); PartsOfSpeechViewController posvc = new PartsOfSpeechViewController(mvc, selectedCategory); posvc.Title = selectedCategory.Name; Console.WriteLine(" category count: " + indexPath.Row); mvc.NavigationController.PushViewController (posvc, true); }