Exemplo n.º 1
0
        public static void TryHideStatusClockView(this UIApplication app)
        {
            var statusBarWindow = app.GetStatusBarWindow();

            if (statusBarWindow == null)
            {
                return;
            }

            var clockView = statusBarWindow.FindSubview(
                "UIStatusBar",
                "UIStatusBarForegroundView",
                "UIStatusBarTimeItemView"
                );

            if (clockView != null)
            {
                clockView.Hidden = true;
            }
        }