推送新的视图控制器时可见上一个控制器的内容 [英] last controller's content visible while pushing a new view controller
本文介绍了推送新的视图控制器时可见上一个控制器的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推视图控制器时,我面临一个非常基本的问题.当我推新控制器时,最后一个控制器的内容在屏幕上可见.我按如下所述推新控制器:
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)
}
推荐答案
我偶尔也会这样. 对我帮助的是确保backgroundColor不是.clear 试试这个:
I had that too occasionally. What helped for me was making sure the backgroundColor is not .clear try this:
viewController.backgroundColor = .white
这篇关于推送新的视图控制器时可见上一个控制器的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文