tableView 只有每组底部才有tableFooterView,怎么给每行cell 都加个tableFooterView啊?
求思路
tableView 只有每组底部才有tableFooterView,怎么给每行cell 都加个tableFooterView啊?
求思路
笨方法,伪代码:
//同一种类型的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
2 回答1k 阅读
1 回答1.1k 阅读✓ 已解决
1 回答2.7k 阅读
1 回答1.5k 阅读
1 回答1.4k 阅读
1.7k 阅读
1 回答1.1k 阅读
如果只有一组可以把每个cell当成一组
如果是好多组,可以建立多个tableview。。。