简体   繁体   中英

Resize a TableView inside a TableViewController Swift

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.

The second thing is that the TableView's last cell goes below the TabBar which makes it impossible to select the last cell.

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.

Thanks in Advance.

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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM