这个问题分析不错的博客大家可以参考:https://www.jianshu.com/p/27114cce7c75
解决方法:【 _tb为UITableView的实例 】
        UIView *testView  = [[UIView  alloc] init];
        testView.height = 0.001;
        testView.backgroundColor = [UIColor blueColor];
        [_tb setTableHeaderView:testView];










