在开发过程中,若tableView的frame大于所有创建的cell的frame,就会显示多余的Cell,很难看,如下图所所示:
解决方案:只需要在代码中加一句代码就OK了
//不显示多余的空Cell yourTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
原文地址:http://www.cnblogs.com/jxufelilu-blog/p/5036599.html
在开发过程中,若tableView的frame大于所有创建的cell的frame,就会显示多余的Cell,很难看,如下图所所示:
解决方案:只需要在代码中加一句代码就OK了
//不显示多余的空Cell yourTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
原文地址:http://www.cnblogs.com/jxufelilu-blog/p/5036599.html