text: Q:
  
  Tableview scrolling and header views
  
  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.
  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.
  Is it possible to this? But I didnt want this in a tap function.
  - (void)scrollViewDidScroll:(UIScrollView *)scrollView
  {
      if(scrollView == table)
      {
          tab.contentOffset = table.contentOffset; 
          headerview.hidden=YES;
      }
      else
      {
          table.contentOffset = tab.contentOffset;
          headerview.hidden=YES;
      }
  }
  
  it hides the headerview ,but my problem is when the scrolling of tableview stops headerview need to be appear again.
  
  A:
  
  - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
  {
      NSLog(@"scrollViewDidEndDecelerating");
      if(scrollView == table)
      {
          tab.contentOffset = table.contentOffset; 
          headerview.hidden=NO;
  
      }
      else
      {
          table.contentOffset = tab.contentOffset;
          headerview.hidden=NO;
  
      }
  }
  
  when the scroling stops it
  - (void)scrollViewDidScroll:(UIScrollView *)scrollView
  {
      if(scrollView == table)
      {
          tab.contentOffset = table.contentOffset; 
          headerview.hidden=YES;
      }
      else
      {
          table.contentOffset = tab.contentOffset;
          headerview.hidden=YES;
      }
  }
  
  it hidses the header view.
  thankyou.
  
  