我用的是uitableviewcontroller,把style设为了group,就会出现上面的那部分空间,我把sectionHeaderHeight设为0 也去不掉,把self.automaticallyAdjustsScrollViewInsets设为no,也不行,
(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section 在这个方法返回0 也没效果,大小都不改变,但是返回1的话,那部分的高度是会变成1,
不知道为什么返回0它没效果。请教该这么办
HeightForHeaderInSection is set to 0, which is equivalent to not being set in the eyes of iOS. The system will set a non-zero value, which is probably what you see. The general approach is to set it to 0.1
Is it resolved? Seeking the same