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

            var navBarHeight = NavigationController?.NavigationBar.Frame.Height ?? 0;

            TableAdditionalStyling.ChangeBackgroundColor(TableView);
            TableAdditionalStyling.SetEmptyTablePlaceholder("There are no recipies in this category yet!", TableView, navBarHeight, out _emptyPlaceholderView);

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

            TableAdditionalStyling.ChangeBackgroundColor(TableView);
            TableAdditionalStyling.SetLoadingView("Loading", TableView, NavigationController, out _loadingView,
                                                  out _loadingLabel, out _spinner);

            var navBarHeight = NavigationController?.NavigationBar.Frame.Height ?? 0;

            TableAdditionalStyling.SetEmptyTablePlaceholder(
                "You have no favorites yet. Have not liked any of available recipes?", TableView, navBarHeight,
                out _emplyPlaceholderView);

            CreateBindings();

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

            TableAdditionalStyling.ChangeBackgroundColor(TableView);

            var navBarHeight = NavigationController?.NavigationBar.Frame.Height ?? 0;

            TableAdditionalStyling.SetEmptyTablePlaceholder(
                "Have anything edible? Type it to find out what you can make from it!",
                TableView, navBarHeight, out _emptyPlaceholderView);

            SetSearchViewController();

            var matchButton = new UIBarButtonItem {
                Title = "Match"
            };

            NavigationItem.RightBarButtonItem = matchButton;

            CreateBindings(matchButton);
        }