Why don't the header views that are returned from viewForHeaderInSection scroll with the rest of the table?

I just implemented the UITableViewDelegate::viewForHeaderInSection method to return a custom view. However, when I run the app and load the table view, I notice that header view remains stationary while the rest of the table cells scroll underneath it. What gives? How do I get it to scroll with the rest of the table?

Thanks for your wisdom!


That's how it's meant to work. The header for a section will stay at the top of the tableview to give the user a sense of which section she is currently in. Then when she scrolls further down into the second section, that section header scrolls into view and then eventually replaces the first section header at the top.

You can see this in the Contacts app on your phone.

Need Your Help

Multiple caches not workig in Spring EhCache

java spring caching ehcache

In my code, I have added EhCache with Spring MVC. I have declared two cache names, where one cache is working but another is not working. I have attached my ehcache.xml here

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.