Sitelet https://github.com/conceptdev/RestaurantGuide/commit/9e62c7cb0f8a5cc94b6f3e9dcc873be99b5815e9
Skip to content

Commit 9e62c7c

Browse files
committed
Fix little bug selecting a restaurant from the table
1 parent bcd165f commit 9e62c7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎RestGuide_iOS/MainViewController.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
108108
{
109109
Console.WriteLine("MAIN TableViewDelegate.RowSelected: Label={0}", list[indexPath.Row].Name);
110110

111-
var uivc = new RestaurantViewController(mvc, list[indexPath.Row]);
111+
var uivc = new RestaurantViewController(mvc, sectionElements[indexPath.Section][indexPath.Row]);
112112
uivc.Title = sectionElements[indexPath.Section][indexPath.Row].Name;
113113
mvc.NavigationController.PushViewController(uivc,true);
114114
}

0 commit comments

Comments
 (0)