0

In my navigation controller, I have a TableView with a searchbar at the top. I want this searchbar hidden unless the user drags the table down (as in how it works in the Music app). But if my table has only a few rows (not enough to cause content to go offscreen), the table isn't initially scrollable. If I select a row (causing the navigation controller to load a new view) and then go back to the original view, the table is now scrollable and I can drag down the table to expose to searchbar.

I have no idea what's causing this. I don't know if it's an Apple bug or if I've done something stupid in my code. Has anyone seen this before?

Stewart Macdonald
  • 2,062
  • 24
  • 27

1 Answers1

0

So I think it's a bug in iOS. After a lot of mucking around with my code, and Googling, I found someone else with the same problem:

UITableView Won't Scroll In Certain Conditions

They put forward a solution that has worked for me.

Community
  • 1
  • 1
Stewart Macdonald
  • 2,062
  • 24
  • 27