public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ShowHelpIfNecessary(TutorialHelper.Profiles);

            btnBack.TouchUpInside += (sender, e) => NavigationController.PopViewController(true);

            feedController                 = Storyboard.InstantiateViewController <FeedViewController>();
            feedController.HeaderView      = vwHeader;
            feedController.Id              = SportId;
            feedController.Type            = FeedType.Sport;
            feedController.RefreshStarted += (sender, e) => GetData();
            AddChildViewController(feedController);
            AddToScrollView(feedController.View, 0);
            feedController.HideAddPost();

            scoresController         = Storyboard.InstantiateViewController <ScoresViewController>();
            scoresController.SportId = SportId;
            AddToScrollView(scoresController.View, 1);
            scoresController.HideFilter();
            AddChildViewController(scoresController);

            rankingsController         = Storyboard.InstantiateViewController <SportRankingsViewController>();
            rankingsController.SportId = SportId;
            AddToScrollView(rankingsController.View, 2);
            AddChildViewController(rankingsController);

            aboutController         = Storyboard.InstantiateViewController <SportAboutViewController>();
            aboutController.SportId = SportId;
            AddToScrollView(aboutController.View, 3);
            AddChildViewController(aboutController);

            svScroller.ContentSize = new CoreGraphics.CGSize()
            {
                Width = UIScreen.MainScreen.Bounds.Width * 4
            };

            svScroller.Scrolled += (sender, e) =>
            {
                lcIndicatorLeading.Constant = svScroller.ContentOffset.X / 4f;
                int position = (int)(svScroller.ContentOffset.X / UIScreen.MainScreen.Bounds.Width);
                if (svScroller.ContentOffset.X % UIScreen.MainScreen.Bounds.Width > (UIScreen.MainScreen.Bounds.Width / 2f))
                {
                    position++;
                }

                if (position == 1)
                {
                    ShowHelpIfNecessary(TutorialHelper.SchedulesScores);
                }
            };

            GetData();

            btnProfile.TouchUpInside += (sender, e) =>
            {
                svScroller.SetContentOffset(new CoreGraphics.CGPoint(), true);
            };
            btnScores.TouchUpInside += (sender, e) =>
            {
                svScroller.SetContentOffset(new CoreGraphics.CGPoint()
                {
                    X = UIScreen.MainScreen.Bounds.Width
                }, true);
            };
            btnRankings.TouchUpInside += (sender, e) =>
            {
                svScroller.SetContentOffset(new CoreGraphics.CGPoint()
                {
                    X = UIScreen.MainScreen.Bounds.Width * 2
                }, true);
            };
            btnAbout.TouchUpInside += (sender, e) =>
            {
                svScroller.SetContentOffset(new CoreGraphics.CGPoint()
                {
                    X = UIScreen.MainScreen.Bounds.Width * 3
                }, true);
            };

            btnFollow.TouchUpInside += (sender, e) =>
            {
                if (profile == null)
                {
                    return;
                }

                Shared.Follower.ToggleFollow(btnFollow, profile, profile.Id, FeedType.Sport, (following) =>
                {
                    GetData();
                });
            };

            if (GoToRankings)
            {
                svScroller.SetContentOffset(new CGPoint()
                {
                    X = UIScreen.MainScreen.Bounds.Width * 2
                }, false);
            }

            lblFollowers.Superview.AddGestureRecognizer(new UITapGestureRecognizer(() =>
            {
                if (profile == null)
                {
                    return;
                }
                var controller  = Storyboard.InstantiateViewController <FollowersViewController>();
                controller.Id   = profile.Id;
                controller.Type = FeedType.Sport;
                NavigationController.PushViewController(controller, true);
            }));
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            btnMenu.TouchUpInside += (sender, e) =>
            {
                MainViewController.Instance.AnimateMenuOpen();
            };

            var layout = cvPager.CollectionViewLayout as UICollectionViewFlowLayout;

            layout.ItemSize = new CoreGraphics.CGSize(UIScreen.MainScreen.Bounds.Width, UIScreen.MainScreen.Bounds.Height - 120);

            var controllers    = new List <UIViewController> ();
            var feedController = Storyboard.InstantiateViewController <FeedViewController> ();

            AddChildViewController(feedController);
            controllers.Add(feedController);

            scoresController = Storyboard.InstantiateViewController <ScoresViewController> ();
            AddChildViewController(scoresController);
            controllers.Add(scoresController);

            var rankingsController = Storyboard.InstantiateViewController <RankingsViewController> ();

            AddChildViewController(rankingsController);
            controllers.Add(rankingsController);

            var source = new CustomCollectionSource <UIViewController> (controllers, GetCell);

            cvPager.Source = source;
            cvPager.ReloadData();

            cvPager.Delegate = null;

            cvPager.Scrolled += (sender, e) =>
            {
                int position = (int)(cvPager.ContentOffset.X / UIScreen.MainScreen.Bounds.Width);
                if (cvPager.ContentOffset.X % UIScreen.MainScreen.Bounds.Width > (UIScreen.MainScreen.Bounds.Width / 2f))
                {
                    position++;
                }

                if (position == 1)
                {
                    ShowHelpIfNecessary(TutorialHelper.SchedulesScores);
                }

                SetButtonColor(position);

                lcIndicatorLeading.Constant = cvPager.ContentOffset.X / 3f;
            };

            btnFeed.TouchUpInside += (sender, e) =>
            {
                ScrollToPosition(0);
            };

            btnScores.TouchUpInside += (sender, e) =>
            {
                ScrollToPosition(1);
            };

            btnRankings.TouchUpInside += (sender, e) =>
            {
                ScrollToPosition(2);
            };

            btnSearch.TouchUpInside += (sender, e) =>
            {
                var controller = Storyboard.InstantiateViewController <SearchViewContrroller>();
                NavigationController.PushViewController(controller, true);
            };

            btnNotifications.TouchUpInside += (sender, e) =>
            {
                var controller = Storyboard.InstantiateViewController <NotificationsViewController>();
                NavigationController.PushViewController(controller, true);
            };

            btnExplore.TouchUpInside += (sender, e) =>
            {
                var controller = Storyboard.InstantiateViewController <FavoritesViewController>();
                NavigationController.PushViewController(controller, true);
            };

            lblNotificationCount.Superview.Hidden = true;
            GetNotifications();
        }