Hi ,

 I added UIImageView few UIButton and TextBox to my iPad app. now I want to
add the splash screen to the whole UIView. In this scenario I add the Button
, TextBox  dynamically and UIImageView I used as Control means I drag n drop
it to UIView.

while launching the app the Button and TextBox are hide by splash screen but
UIImageView is show above the splash screen 

for that I tried this code 

public override void ViewDidLoad ()
                {
                        //SetTextViewInfo (PresentImage);
                        base.ViewDidLoad ();                    
                        // Perform any additional setup after loading the view, 
typically from a
nib.
                                                
                        #region Splash Screen
                        // get the Height & Width of device Screen
                        float mainSrcWidth = this.View.Bounds.Width; 
                        float mainSrcHeight = this.View.Bounds.Height;
                        splashScreen = new UIImageView (UIImage.FromFile
("Images/load1536_2008.png"));
                        splashScreen.Frame = new RectangleF (0, 0, 
mainSrcWidth, mainSrcHeight);        
                        
                        //Start the thread;
                        ThreadPool.QueueUserWorkItem (delegate {
                                Load ();
                        }
                        );
this.Add (btnReset);
                        this.Add (btnExit);
                        this.Add (txtviewPatientInfo);
                   
                        this.Add (ImgView);
                        this.View.AddSubview (splashScreen);
}

#region Load() splashscreen
                private void Load ()
                {
                        //Sleep for 5 seconds to simulate a long load.
                        
                        Thread.Sleep (new TimeSpan (0, 0, 0, 5));
                        this.BeginInvokeOnMainThread (delegate {
                                splashScreen.RemoveFromSuperview ();
                                splashScreen = null;
                        }
                        );
                }
                #endregion



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIImageView-not-hide-by-Splash-Screen-tp4656778.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to