john doe
john doe

Reputation: 9660

Hiding UITableView Under Navigation Bar

I have a custom view for the Navigation Bar which displays title and subtitle. When I scroll I hide the NavigationBar using the "Hides Bar on Swipe" property.

Unfortunately, my UITableView still extends to the full screen as shown below: enter image description here

I played around with different properties on UINavigationController in Storyboard

Under Top Bars - unchecked  
Under Bottom Bars - unchecked 

UINavigationController Storyboard Settings:

enter image description here

MyTableViewController Storyboard Settings:

enter image description here

What am I missing?

Upvotes: 0

Views: 261

Answers (2)

Mitul.Patel
Mitul.Patel

Reputation: 252

Please remove tick mark on a show navigation bar.

Upvotes: 2

matt
matt

Reputation: 534925

This is correct and expected behavior. This is exactly why you should not hide the navigation bar; you need it to provide a cover for your table view on “notched” devices.

Upvotes: 0

Related Questions