コード例 #1
0
ファイル: Main.cs プロジェクト: jorik041/NycCodeCamp6
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _waitingView = new WaitingView();

            subscribeToMessages();

            CodeCampService = new CodeCampService("http://codecamps.gregshackles.com/v1", "nyccodecamp6");

            _tabController = new TabController();
            _tabController.View.BackgroundColor = UIColor.Clear;

            var backgroundImage = new UIImageView(UIImage.FromFile("Content/Images/background.png"));
            backgroundImage.UserInteractionEnabled = true;
            backgroundImage.Frame = new System.Drawing.RectangleF(0, 0, window.Frame.Width, window.Frame.Height);
            backgroundImage.AddSubview(_tabController.View);

            window.AddSubview(backgroundImage);

            window.MakeKeyAndVisible ();

            return true;
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: jorik041/NycCodeCamp6
		public override bool FinishedLaunching(UIApplication app, NSDictionary options)
		{
			_waitingView = new WaitingView();
			
			subscribeToMessages();
			
			CodeCampService = new CodeCampService("http://codecamps.gregshackles.com/v1", "nyccodecamp6");
			
			_tabController = new TabController();
			_tabController.View.BackgroundColor = UIColor.Clear;
			
			var backgroundImage = new UIImageView(UIImage.FromFile("Content/Images/background.png"));
			backgroundImage.UserInteractionEnabled = true;
			backgroundImage.Frame = new System.Drawing.RectangleF(0, 0, window.Frame.Width, window.Frame.Height);
			backgroundImage.AddSubview(_tabController.View);
			
			window.AddSubview(backgroundImage);
			
			window.MakeKeyAndVisible ();
	
			return true;
		}