初学者可能遇到很多意想不到的麻烦,我也一样。比如table的cell老出现空白的行,如图:
其实很简单,只要在代码中加这样一句话:
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
解决tableview出现多余行
最新推荐文章于 2020-11-24 09:20:33 发布
初学者可能遇到很多意想不到的麻烦,我也一样。比如table的cell老出现空白的行,如图:
其实很简单,只要在代码中加这样一句话:
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];