Пример #1
0
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            if (segue.Identifier == "showCountries")
            {
                CountriesViewController controller = (CountriesViewController)segue.DestinationViewController;
                var indexPath = TableView.IndexPathForSelectedRow;
                var item      = dataSource.Objects[indexPath.Row];

                controller.CurrentRegion = item;
                controller.NavigationItem.LeftBarButtonItem             = SplitViewController.DisplayModeButtonItem;
                controller.NavigationItem.LeftItemsSupplementBackButton = true;
            }
        }
 public DataSource(CountriesViewController controller, ScItemsResponse data)
 {
     this.controller = controller;
     this.objects    = data;
 }