Exemplo n.º 1
0
		public void RemoveUserBadge()
		{
			if (UserBadgeViewController != null && IsViewLoaded && View.Window != null)
			{
				InvokeOnMainThread(() =>
				{
					UserBadgeViewController.RemoveFromParentViewController();
					UserBadgeViewController.View.RemoveFromSuperview();
					UserBadgeViewController.Dispose();
					UserBadgeViewController = null;
					System.GC.Collect(0);
				});
			}
		}
Exemplo n.º 2
0
		public void UpdateUserBadge()
		{
			if (UserBadgeViewController == null)
			{
				UserBadgeViewController = new UserBadgeViewController();
				UserBadgeViewController.View.Frame = new CoreGraphics.CGRect(0, 0, View.Bounds.Size.Width, View.Bounds.Size.Height - TabBarController.TabBar.Frame.Size.Height);
				View.InsertSubview(UserBadgeViewController.View, 0);
				UserBadgeViewController.ViewWillAppear(true);
			}

		}
Exemplo n.º 3
0
		protected override void Dispose(bool disposing)
		{
			base.Dispose(disposing);
			if (disposing)
			{
				UserBadgeViewController.Dispose();
				UserBadgeViewController = null;
				StatusViewController.Dispose();
				StatusViewController = null;
			}
		}