LuohanCC / XNProgressHUD

MIT License
91 stars 11 forks source link

状态的过渡动画问题 #5

Open libern opened 5 years ago

libern commented 5 years ago

尝试如下操作:

            XNProgressHUD.shared()?.show()
            Async.main(after: 5) {
                XNProgressHUD.shared()?.showError(withTitle: "请求失败")
                Async.main(after: 5) {
                    XNProgressHUD.shared()?.showSuccess(withTitle: "请求成功")
                }
            }

在loading > error的过程中,titleLabel的动画是从左上角下来的,有点儿奇怪。

LuohanCC commented 5 years ago

这应该是你代码的问题,引起这种情况的原因一般出现在动画处理中,例如UIView动画的回调中包含了强引用。

libern commented 5 years ago

直接在你的demo项目里面,切换显示也有这个问题的,我并没有强引用

LuohanCC notifications@github.com于2019年5月6日 周一00:41写道:

这应该是你代码的问题,引起这种情况的原因一般出现在动画处理中,例如UIView动画的回调中包含了强引用。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LuohanCC/XNProgressHUD/issues/5#issuecomment-489442609, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN654FWVZIWFMK7HLZFH5TPT4E4TANCNFSM4HK2JBKA .

-- Im Libern.

MaskedMan2020 commented 5 years ago

我晚点看看

MaskedMan2020 commented 5 years ago

已修复,今晚提交更新。

libern commented 5 years ago

谢谢。还有一个小问题,当现实错误的hud时,打叉叉的动画,在hud隐藏时,直接生硬的变成横线了。

可以看下打勾的隐藏,直接是保持不变,然后隐藏的。

LuohanCC commented 5 years ago

done.