Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TableView Showing Behind Tab Bar

I am updating my app to use iOS 7 and I'm having a problem with a table view. My tab bar is translucent. The problem is when I scroll to the bottom of my table view, part of the last cell is still behind the tab bar. I'd like to have a bit of space between the last cell and the tab bar. I could fix this by using an opaque tab bar instead, but I want to keep it translucent.

enter image description here

like image 823
raginggoat Avatar asked Jan 02 '14 13:01

raginggoat


3 Answers

Try setting

self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
self.automaticallyAdjustsScrollViewInsets = NO;

Inside the tableview controller

like image 75
Johnykutty Avatar answered Nov 18 '22 19:11

Johnykutty


Swift 4.x

let adjustForTabbarInsets: UIEdgeInsets = UIEdgeInsetsMake(0, 0, self.tabBarController!.tabBar.frame.height, 0)
self.yourTableView.contentInset = adjustForTabbarInsets
self.yourTableView.scrollIndicatorInsets = adjustForTabbarInsets
like image 24
Hemang Avatar answered Nov 18 '22 19:11

Hemang


Check the screen shot

enter image description here

Check the under top Bar and Un-checke under Bottom Bar

like image 19
CoolMonster Avatar answered Nov 18 '22 20:11

CoolMonster