直接 上代码
view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
view.backgroundColor=[UIColor redColor];
_tableView.tableHeaderView=nil;
[_tableView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew context:Nil];
-(void)observeValueForKeyPath:(NSString