last controller's content visible while pushin

2019-08-20 04:41发布

I am facing a very basic problem while pushing a view controller. When I am pushing a new controller, the last controller's content is visible on screen. I am pushing the new controller as follows:

DispatchQueue.main.async {
                    self.navigationController?.pushViewController(reviewFeatureViewController, animated: true)
                }

enter image description here

1条回答
虎瘦雄心在
2楼-- · 2019-08-20 05:23

I had that too occasionally. What helped for me was making sure the backgroundColor is not .clear try this:

viewController.backgroundColor = .white
查看更多
登录 后发表回答