I have a TableViewController
which comes from a TabBarController
. Now my problem is that, the TableView
becomes scrollable under my NavigationBar
on the top which is transparent and I don't want this to happen.
我有一个来自TabBarController的TableViewController。现在我的问题是,TableView在我的NavigationBar底部变得可滚动,这是透明的,我不希望这发生。
The second thing is that the TableView's
last cell
goes below the TabBar
which makes it impossible to select the last cell.
第二件事是TableView的最后一个单元格低于TabBar,这使得无法选择最后一个单元格。
Can someone suggest me how to resize the TableView
, so that I place it perfectly in between the navigationBar
on the top and the TabBar
on the bottom.
有人可以建议我如何调整TableView的大小,以便我将它完美地放在顶部的navigationBar和底部的TabBar之间。
Thanks in Advance.
提前致谢。
1 个解决方案
#1
Select your UIViewController in storyboard and go to Attribute inspector. In Top Bar combo select Opaque Navigation Bar and in Bottom Bar combo selct Opaque Tab bar.
在故事板中选择您的UIViewController,然后转到属性检查器。在Top Bar组合中选择Opaque Navigation Bar和Bottom Bar组合selct Opaque Tab栏。
#1
Select your UIViewController in storyboard and go to Attribute inspector. In Top Bar combo select Opaque Navigation Bar and in Bottom Bar combo selct Opaque Tab bar.
在故事板中选择您的UIViewController,然后转到属性检查器。在Top Bar组合中选择Opaque Navigation Bar和Bottom Bar组合selct Opaque Tab栏。