コード例 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var asianCuisine = dataService.GetRestaurantsForGroup(2);
            var datasource   = new RestaurantDataSource(asianCuisine, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Asian Cuisine";
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var coffeeShops = dataService.GetRestaurantsForGroup(3);

            var datasource = new RestaurantDataSource(coffeeShops, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Coffee Shops";
        }
コード例 #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var gastroPubs = dataService.GetRestaurantsForGroup(4);

            var datasource = new RestaurantDataSource(gastroPubs, this);

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Gastro Pubs";
        }
コード例 #4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var modernIrish = dataService.GetRestaurantsForGroup(1);
            var datasource  = new RestaurantDataSource(modernIrish, this);

            TableView.RowHeight          = UITableView.AutomaticDimension;
            TableView.EstimatedRowHeight = 44;

            TableView.Source = datasource;

            this.NavigationController.NavigationItem.Title = "Modern Irish";
        }