tableView 只有每组底部才有tableFooterView,怎么给每行cell 都加个tableFooterView啊?
求思路
如果只有一组可以把每个cell当成一组
如果是好多组,可以建立多个tableview。。。
笨方法,伪代码:
//同一种类型的cell
topView = UIView.new
bottomView = UIView.new
footerView = UIView.new
cell.contentView.addSubview(topView)
cell.contentView.addSubview(bottomView)
cell.contentView.addSubview(footerView)
Cell是可以复用的,你可以把footerView当作Cell的footerView来用,甚至可以继承一个Cell(推荐),在其中初始化各种View