标签栏控制器在隐藏时不会更新帧

时间:2018-02-13 01:34:48

标签: ios swift xcode tabbar

我现在已经开始申请了大约8个月的申请,直到今天才对此有任何疑问。当我在应用程序中打开特定页面时,我需要隐藏标签栏。但是,自从我切换到Xcode 9-Beta以来,我一直遇到一个问题,即只要标签栏被隐藏,它就不会更新视图以延伸到边缘。它只是在屏幕底部留下了一个黑色空间。

tabBarController?.tabBar.isHidden = false

// This fixed the problem, but I never had to do this before. What else can be the cause of this problem
tabBarController?.tabBar.frame = cgRect.zero

这是隐藏标签栏时页面的样子:

enter image description here

这些是我的标签栏控制器的属性: Tab Bar Controller Attributes

0 个答案:

没有答案
相关问题