コード例 #1
0
        public bool ShowSplashScreen(UIInterfaceOrientation orientation)
        {
            if(this.splashView == null) {
            #if DEBUG
                log ("Showing SplashScreen...");
            #endif
                splashView = new SplashScreenView(orientation);

                // Show splash screen as top view
                this.View.AddSubview(splashView);
                this.View.BringSubviewToFront(splashView);
                return true;
            } else {
            #if DEBUG
                log ("Not able to show the splash screen. Reason: it is already shown.");
            #endif
                return false;
            }
        }
コード例 #2
0
        public bool DismissSplashScreen()
        {
            #if DEBUG
            log ("Dismissing SplashScreen...");
            #endif

            if(splashView != null) {
                splashView.RemoveFromSuperview();
                splashView.Dispose();
                splashView = null;
            #if DEBUG
                log ("Splashscreen dismissed.");
            #endif
                return true;
            }

            #if DEBUG
            log ("Not able to dismiss the splash screen. Reason: it is not shown.");
            #endif

            return false;
        }