jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

MBProgressHUD with Keyboard #363

Open vandilsonlima opened 8 years ago

vandilsonlima commented 8 years ago

When MBProressHUD is add to the ViewController's view when the keyboard is disappearing, seems its coming from the top left (There is an animation from top left to the center). What should I do to avoid this behavior? I just want put in in the center while the keyboard desapear.

matej commented 8 years ago

Hm.. sounds like the keyboard animation is leaking through to -[MBProgressHUD layoutSubviews]. We probably need to prevent animations at some point in the hud layout / initialization process.

JanzTam commented 8 years ago

Hi~ I used MBProgressHUD and IQKeyboardManager in the same project. When the keyboard is disappearing,MBProgressHUD disappear time change too short(I set 3s, actually is 1s or less). Because they in the same runloop?Can you tell me anywhere has conflict?

Thx.

dulgan commented 6 years ago

I had the same problem when resigning first responder (making the keyboard dissappear) on the same cycle the show hud was called. Using DispatchQueue.main.async { /* ... */ } to call either the resign or the show/hide solved the problem