문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top