0

I've followed the steps in the accepted answer of this question: Sticky search bar and section header behavior similar to native Contacts app

All works fine, but I want to add a UIRefreshControl to the table view. It also works fine, but after refreshing, the table view is not displaying correctly. It seems that the UIRefreshControl is not handling the inset for the search bar in the table view.

Here you can see the UITableViewand the UISearchBar before pulling down: enter image description here

And here you can see the UITableViewand the UISearchBar after releasing: enter image description here

How can I solve this? Any hints?

Community
  • 1
  • 1
neutrino
  • 2,297
  • 4
  • 20
  • 28

1 Answers1

0

Solved! The problem was that I forgot to call UIRefreshControl endRefreshing method when the refreshing operation ended.

neutrino
  • 2,297
  • 4
  • 20
  • 28
  • Hi, Could you show your code. How did you put the `UIRefreshControl` and the `UISearchBar` like this? I have both but I put the search bar in Interface Builder and the refresh control I added as a subview to the table. But now I can't see the refresh control in the search results. I tried using the search bar as the table view header but it gave me errors. – Ali Jul 28 '13 at 18:12