예제 #1
0
        private void ControllerSetup()
        {
            // get main screen size
            this.ScreenSize = JVMenuHelper.GetScreenSize();

            this.View.Frame            = new CGRect(0, 0, this.ScreenSize.Width, this.ScreenSize.Height);
            this.View.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth;
            this.View.BackgroundColor  = UIColor.Clear;

            this.Add(MenuView);
            this.Add(CloseBtn);
        }
예제 #2
0
        /// <summary>
        /// Setup this instance.
        /// </summary>
        private void Setup()
        {
            if (this.Frame.Size.Width == 0)
            {
                this.ScreenSize = JVMenuHelper.GetScreenSize();

                this.Frame = new CGRect(0, 0, ScreenSize.Width, ScreenSize.Height);
            }


            this.BackgroundColor = UIColor.Black.ColorWithAlpha(0.5f);

            this.Add(TableView);
        }