-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
Pushing UIViewController from SideMenu sometimes blinks/flashes This bugs has no fix at 6.5.0 #694
Comments
navigationController?.dismiss(动画:false) 这样写可以解决问题,但觉得不是很对。 |
+1 |
It works for me version 6.5.0
Set In SideMenuManager I made public In SideMenuSettings I made public from internal When push |
There is no push comletion method |
@Dreamer4ik I also have this problem and did use your solution. However you can simplify it like this:
No need to directly access activeMenu (everything it relies on is public anyway). I see the flicker a lot less on the Simulator but I don't know what that means. |
@Dreamer4ik I have another solution (or workaround).
Just call I think the Flicker is caused by two animations interfering with each other. These are most likely the animations produced by pushViewController() and dismiss(). These two workarounds of ours guarantee that the second animation doesn't start until the first one has completed. There's one odd thing that I notice. Here's what I see: I tap on the hamburger menu and the side menu opens |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at:indexPath,动画:true)
let starVc = TDViewController()
starVc.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(starVc,动画:true)
}
当我从侧栏的页面中didseleted方法中push一个新页面,这样做会出现闪烁。类似有个黑色的遮罩遮住了页面零点几秒,在不同的页面之前push时发生概率大点。每次App重新运行后也可以复现,但当我推了几次页面后,这个问题就自己消失了。
The text was updated successfully, but these errors were encountered: