问题:uitableView的group模式自带一个section的headerView,如果不调整,系统就会默认高度,在滑动时就会向下偏移一个单位的scetion高度,我们改变tableView的高度和他的父视图的高度都没有用,使得我们的tableView一滑动就变位置。 解决办法:改变tableView的headerView的frame,上代码self.mainTable.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.mainTable.bounds.size.width, 0.01f)];加上这句代码再运行一下就OK了。