public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			TableView = new UITableView (this.View.Frame, UITableViewStyle.Grouped);
			TableView.Delegate = this.TableView.Delegate;
			TableView.DataSource = this.TableView.DataSource;
			this.View.AddSubview (this.TableView);
			TableView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;

			UIColor tableViewBackgroundColor = new UIColor (110.0F / 255.0F, 113.0F / 255.0F, 115.0F / 255.0F, 1.0F);
			UIColor barColor = new UIColor (161.0F / 255.0F, 164.0F / 255.0F, 166.0F / 255.0F, 1.0F);

			this.TableView.BackgroundColor = tableViewBackgroundColor;
			this.TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
			this.View.BackgroundColor = new UIColor (161.0F / 255.0F, 164.0F / 255.0F, 166.0F / 255.0F, 1.0F);
			//if(this.NavigationController.NavigationBar RespondsToSelector(UIAppearance.SelectorAppearance)){
			this.NavigationController.NavigationBar.BarTintColor = barColor;

			UIColor titleColor = new UIColor (55.0F / 255.0F, 70.0F / 255.0F, 77.0F / 255.0F, 1.0F);

			this.NavigationController.NavigationBar.SetTitleTextAttributes (new UITextAttributes (){ TextColor = titleColor });

			this.DrawerWidths = NSArray.FromStrings (new string[] { "160", "200", "240", "280", "320" });
			SizeF logoSize = new SizeF (58F, 62F);
			MMLogoView logo = new MMLogoView (this.View.Frame);
			logo.Frame = new RectangleF (this.TableView.Bounds.GetMidX () - logoSize.Width / 2.0F, -logoSize.Height - logoSize.Height / 4.0F, logoSize.Width, logoSize.Height);
			logo.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin;
			this.TableView.AddSubview (logo);
			this.View.BackgroundColor = UIColor.Clear;
		}
		public override void ViewDidLoad(){
			this.TableView = new UITableView (this.View.Bounds, UITableViewStyle.Grouped);
			base.ViewDidLoad ();
			this.View.AddSubview (this.TableView);

			UITapGestureRecognizer doubleTap = new UITapGestureRecognizer ();
			doubleTap.NumberOfTapsRequired = 2;
			this.View.AddGestureRecognizer (doubleTap);

			UITapGestureRecognizer twoFingerDoubleTap = new UITapGestureRecognizer ();
			twoFingerDoubleTap.NumberOfTapsRequired = 2;
			twoFingerDoubleTap.NumberOfTouchesRequired = 2;
			this.View.AddGestureRecognizer (twoFingerDoubleTap);

			this.SetupLeftButton ();
			this.SetupRightButton ();

			UIColor barColor = new UIColor (247.0F / 255.0F, 249.0F / 255.0F, 250.0F / 255.0F, 1.0F);
			this.NavigationController.NavigationBar.BarTintColor = barColor;

			MMLogoView logo = new MMLogoView (new RectangleF (0F, 0F, 29F, 31F));
			this.NavigationItem.TitleView = logo;
			this.NavigationController.View.Layer.CornerRadius = 10.0F;

			UIView backView = new UIView ();
			backView.BackgroundColor = new UIColor (208.0F / 255.0F, 208.0F / 255.0F, 208.0F / 255.0F, 1.0F);
			this.TableView.BackgroundView = backView;
		}
Example #3
0
        public override void ViewDidLoad()
        {
            this.TableView = new UITableView(this.View.Bounds, UITableViewStyle.Grouped);
            base.ViewDidLoad();
            this.View.AddSubview(this.TableView);

            UITapGestureRecognizer doubleTap = new UITapGestureRecognizer();

            doubleTap.NumberOfTapsRequired = 2;
            this.View.AddGestureRecognizer(doubleTap);

            UITapGestureRecognizer twoFingerDoubleTap = new UITapGestureRecognizer();

            twoFingerDoubleTap.NumberOfTapsRequired    = 2;
            twoFingerDoubleTap.NumberOfTouchesRequired = 2;
            this.View.AddGestureRecognizer(twoFingerDoubleTap);

            this.SetupLeftButton();
            this.SetupRightButton();

            UIColor barColor = new UIColor(247.0F / 255.0F, 249.0F / 255.0F, 250.0F / 255.0F, 1.0F);

            this.NavigationController.NavigationBar.BarTintColor = barColor;

            MMLogoView logo = new MMLogoView(new RectangleF(0F, 0F, 29F, 31F));

            this.NavigationItem.TitleView = logo;
            this.NavigationController.View.Layer.CornerRadius = 10.0F;

            UIView backView = new UIView();

            backView.BackgroundColor      = new UIColor(208.0F / 255.0F, 208.0F / 255.0F, 208.0F / 255.0F, 1.0F);
            this.TableView.BackgroundView = backView;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            TableView            = new UITableView(this.View.Frame, UITableViewStyle.Grouped);
            TableView.Delegate   = this.TableView.Delegate;
            TableView.DataSource = this.TableView.DataSource;
            this.View.AddSubview(this.TableView);
            TableView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;

            UIColor tableViewBackgroundColor = new UIColor(110.0F / 255.0F, 113.0F / 255.0F, 115.0F / 255.0F, 1.0F);
            UIColor barColor = new UIColor(161.0F / 255.0F, 164.0F / 255.0F, 166.0F / 255.0F, 1.0F);

            this.TableView.BackgroundColor = tableViewBackgroundColor;
            this.TableView.SeparatorStyle  = UITableViewCellSeparatorStyle.None;
            this.View.BackgroundColor      = new UIColor(161.0F / 255.0F, 164.0F / 255.0F, 166.0F / 255.0F, 1.0F);
            //if(this.NavigationController.NavigationBar RespondsToSelector(UIAppearance.SelectorAppearance)){
            this.NavigationController.NavigationBar.BarTintColor = barColor;

            UIColor titleColor = new UIColor(55.0F / 255.0F, 70.0F / 255.0F, 77.0F / 255.0F, 1.0F);

            this.NavigationController.NavigationBar.SetTitleTextAttributes(new UITextAttributes()
            {
                TextColor = titleColor
            });

            this.DrawerWidths = NSArray.FromStrings(new string[] { "160", "200", "240", "280", "320" });
            SizeF      logoSize = new SizeF(58F, 62F);
            MMLogoView logo     = new MMLogoView(this.View.Frame);

            logo.Frame            = new RectangleF(this.TableView.Bounds.GetMidX() - logoSize.Width / 2.0F, -logoSize.Height - logoSize.Height / 4.0F, logoSize.Width, logoSize.Height);
            logo.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin;
            this.TableView.AddSubview(logo);
            this.View.BackgroundColor = UIColor.Clear;
        }