问题解决了,现在分享下解决办法: 当cell的类型是plaint类型时,直接设置self.automaticallyAdjustsScrollViewInsets=NO;应该就可以的 当cell的类型是group类型时,此时要去掉tableView顶部的空白需要两步: 1.设置tableView的tableHeaderView高度为0.5; self.MenuTable.tableHeaderView=[[UIview alloc] initWithFrame:(CGRectMake(0,20,82,0.5))]; 2.设置heightForHeaderInSection的高度为0.5 -(CGFloat)tableView:(UItableView *)tableView heightForHeaderInSection(NSInteger)section{ return 0.5; }
请问要改table什么缩进量呀?
我检查了下frame,发现没有问题,谢谢你,这么热心
tableView是自己拖过去的一个控件,不是tableViewController,所以没有Prototype Cell.
29,031
社区成员
12,466
社区内容
加载中
试试用AI创作助手写篇文章吧