Пример #1
0
        void ShowTextOnly()
        {
            // Show the hud on top most view
            hud = MTMBProgressHUD.ShowHUD(this.navController.View, true);

            // Configure for text only and offset down
            hud.Mode      = MBProgressHUDMode.Text;
            hud.LabelText = "Some message...";
            hud.Margin    = 10f;
            hud.YOffset   = 150f;
            hud.RemoveFromSuperViewOnHide = true;

            hud.Hide(true, 3);
        }
Пример #2
0
		void ShowUrl ()
		{
			// Show the hud on top most view
			hud = MTMBProgressHUD.ShowHUD (this.navController.View, true);
			
			// Regiser for DidHide Event so we can remove it from the window at the right time
			hud.DidHide += HandleDidHide;

			NSUrl url = new NSUrl ("https://github.com/matej/MBProgressHUD/zipball/master");
			NSUrlRequest request = new NSUrlRequest (url);

			NSUrlConnection connection = new NSUrlConnection (request, new MyNSUrlConnectionDelegete (this, hud));
			connection.Start();
		}