我用的是uitableviewcontroller,把style设为了group,就会出现上面的那部分空间,我把sectionHeaderHeight设为0 也去不掉,把self.automaticallyAdjustsScrollViewInsets设为no,也不行,
(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 在这个方法返回0 也没效果,大小都不改变,但是返回1的话,那部分的高度是会变成1,
不知道为什么返回0它没效果。请教该这么办
(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 在这个方法返回0.001
sectionHeaderHeight 设置为0.001
在你的VC里面设置
self.automaticallyAdjustsScrollViewInsets = NO;