Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Black bar over a TableView just above TabBar

I have a UITableView with cells which perform a segue to an other simple detail view. The UITableView and detail view are embed in a Navigation Controller.

On my UITableView I put a UISearchController bar folowing this tutorial: http://www.jhof.me/simple-uisearchcontroller-implementation/

So now, I have the following graphic problem: When I perform a segue by tapping a cell after having make a research, I arrive to my detail view. But when I tap the Back button in the Navigation Bar, a mysterious black bar appears just above the TabBar. When the animation is over, the black bar disappears.

enter image description here

But when I tap the return button from the detail view without having done a research to arrive at this detail view, there is no black bar.

I can't understand why there is that black bar. I just note the black bar's height is equal to the TabBar's height. Maybe a link ?

EDIT: I have solved the problem, it was linked with the TabBarController, but I don't understand why. I just have changed it and I made links with the different views again and particularly with my former bugged search view. After that, no more black bar...

like image 300
Sylvain M Avatar asked Nov 10 '22 13:11

Sylvain M


1 Answers

I was able to solve this issue by setting extendedLayoutIncludesOpaqueBars to YES on the main table view.

like image 198
Jeeves Avatar answered Nov 15 '22 06:11

Jeeves