當(dāng)沒有其它數(shù)據(jù),tableView 出現(xiàn)下面的情況,多出許多多余的分割線

wechat01.jpg
這個(gè)時(shí)時(shí)候,只要在tableView初始化的時(shí)時(shí)候加上一句
self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero];
就可以去除多余的分割線
當(dāng)沒有其它數(shù)據(jù),tableView 出現(xiàn)下面的情況,多出許多多余的分割線
這個(gè)時(shí)時(shí)候,只要在tableView初始化的時(shí)時(shí)候加上一句
self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero];
就可以去除多余的分割線