Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.AreaCollectionOutlet       = AreaCollection;
            base.AreaCollectionHeightOutlet = AreaCollectionHeight;
            base.AreaCollectionTopOutlet    = cnsAreaCollectionTop;

            base.ViewDidLoad();

            ShouldDrillDownImmediately = true;

            var iv = new UIImageView(UIImage.FromBundle("more-bg.jpg"));

            iv.AddSubview(new UIView(iv.Bounds)
            {
                BackgroundColor = UIColor.FromRGBA(255, 255, 255, 128)
            });
            iv.ContentMode = UIViewContentMode.ScaleToFill;
            CollectionView.BackgroundView = iv;
            CollectionView.AddRefreshControl();
            AllRewardsButton.SetTitle("All Rewards");
            AvailableRewardsButton.SetTitle("Aviable");
            ClaimedButton.SetTitle("Claimed");

            // Perform any additional setup after loading the view, typically from a nib.
            CollectionView.RegisterNibForCell(RewardCollectionViewCell.Nib, RewardCollectionViewCell.ClassName);

            CheckToRegisterAppForRemoteNotifications();
        }