简体   繁体   中英

Progress indicator not bring to front view

ProgressIndicator (MTMProgressHub) when bring to Front its not appears

    hud = new MTMBProgressHUD (View);
    View.BringSubviewToFront (hud);
    View.AddSubview (hud);
    hud.Show (true);

Please find the below Image 在此处输入图片说明

As showing in image the progress indicator is back side of buttons (Registration Login Contact Us)..

    public LoginViewController(){

        hud = new MTMBProgressHUD (View);
        View.BringSubviewToFront (hud);
        View.AddSubview (hud);
        hud.Show (true);

}

unable to push it to front.

You can bring a view to front only when it is added to a parent view. Here you called BringSubviewToFront before adding it to the view.

Change that to:

hud = new MTMBProgressHUD (View);
View.AddSubview (hud);
View.BringSubviewToFront (hud);
hud.Show (true);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM