Skip to content

Translucent navigationBar with a UITableView

When using a translucent navigation bar, the content of the table gets “below” it, to fix the problem use this line of code.

tableview.contentInset = UIEdgeInsetsMake(navigationController.navigationBar.frame.size.height, 0,0,0);

It’s almost like magic, now the content of the table will not be “below” the translucent navigation bar.

Post a Comment

Your email is never published nor shared. Required fields are marked *