Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SVProgressHUD dismiss] not dismissing the hud sometimes #591

Closed
PayalUmraliya opened this issue Apr 1, 2016 · 10 comments
Closed

[SVProgressHUD dismiss] not dismissing the hud sometimes #591

PayalUmraliya opened this issue Apr 1, 2016 · 10 comments

Comments

@PayalUmraliya
Copy link

I integared SVProgressHUD in my app.I am using SVProgressHUD when i make request from server.
when from server i receive error at that time i try to dismiss the SVProgressHUD.But it is keep loading and dismiss after request time out.

i am using [SVProgressHUD dismiss] and also tried
dispatch_async(dispatch_get_main_queue(), ^{
[SVProgressHUD dismiss];
});
But still facing this issue.

@honkmaster
Copy link
Member

Are you on the latest version? To help you I need more details, the best would be a demo project.

@hclviv
Copy link

hclviv commented Apr 4, 2016

I tried the latest version 2.0.2 and still facing the same issue. I am using [SVProgressHUD dismiss]; but its not dismiss and keep trying loading

@honkmaster
Copy link
Member

Hi, again: i need any kind of demo project or something/ anything else as I can nor reproduce the issue.

@hclviv
Copy link

hclviv commented Apr 4, 2016

Hi @honkmaster

Here are some pointers to reproduce the issue -

  1. call [SVProgressHUD showWithStatus:@"Loading..." ]
  2. After this line you can call any web service with AFNetworking Asynchronously
  3. When data received try to dismiss the spinner using [SVProgressHUD dismiss]

@alampila
Copy link

alampila commented Apr 5, 2016

I too am seeing this behavior when calling dismiss very quickly after a show method. It appears to me that the HUD has not yet been animated on screen by the time dismiss is called.

@GitterYang
Copy link

@alampila I met the same problem, are you solve that?

@hclviv
Copy link

hclviv commented Apr 11, 2016

try to dismiss SVProgressHUD in main queue --
dispatch_async(dispatch_get_main_queue(), ^{
[SVProgressHUD dismiss];
});

its working fine in my case

@honkmaster
Copy link
Member

Should be fixed with the latest commit, please check the current master and provide feedback.

@ghost
Copy link

ghost commented Jun 26, 2018

Could Someone Also Tell How To Lower The Time It Takes For ProgressHUD To Dismiss After Being Launched?

Code:

@IBAction func logOutPressed(_ sender: AnyObject) {
    
    //TODO: Log out the user and send them back to WelcomeViewController
    do {
        try Auth.auth().signOut()
        SVProgressHUD.showSuccess(withStatus: "Logging Out Sucsessful")
        navigationController?.popToRootViewController(animated: true)
    }
    
    catch {
        print("Error Logging Out : \(error)")
        SVProgressHUD.showError(withStatus: "Logging Out Unsucsessful")
        **SVProgressHUD.dismiss()** Tryed But HUD Duration Is Same Length.
    }
    
}

@krishnasolankiBigbang
Copy link

I am getting Same issue Even i tried ::
dispatch_async(dispatch_get_main_queue(), ^{
[SVProgressHud Dismiss];
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants