Tableview scrolling and header views
<p>My application has a header (like toolbar) which contains some button controllers,and just below the header view there is a tableview which contains some datas from sqlite.</p>

<p>When the tableview starts scrolling, I need the top header to hide and another header to pop out in place of the main header view.</p>

<p>Is it possible to this? But I didnt want this in a tap function.</p>

<pre><code>- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    if(scrollView == table)
    {
        tab.contentOffset = table.contentOffset; 
        headerview.hidden=YES;
    }
    else
    {
        table.contentOffset = tab.contentOffset;
        headerview.hidden=YES;
    }
}
</code></pre>

<p>it hides the headerview ,but my problem is when the scrolling of tableview stops headerview need to be appear again.</p>
