使用Group样式时顶部出现空白区
方法1
CGRect frame=CGRectMake(0, 0, 0, CGFLOAT_MIN);
self.tableView.tableHeaderView=[[UIView alloc]initWithFrame:frame];
方法2
-(void)viewDidAppear:(BOOL)animated
{
[superviewDidAppear:animated];
self.tableView.contentInset = UIEdgeInsetsZero;
}
网友评论