我有两个原型单元格。其中一个用于显示数据&其他我用于标题视图。多个原型单元格标题在删除时移动
当我尝试删除我的常规细胞。标题单元随它一起移动。
我不想头,当我试图删除定期细胞移动。
我已禁用标题原型单元格上的用户交互。它仍然在继续前进。在提交编辑样式中,我立即返回标题原型单元格。它仍然在继续前进。我不知道还有什么要做。请帮忙。
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
if tableView == upcomingTableView {
if let headerCell = tableView.dequeueReusableCellWithIdentifier("headerCell") {
headerCell.textLabel?.text = sectionNames[section]
headerCell.detailTextLabel?.text = "Rs\(sum[section])"
headerCell.detailTextLabel?.textColor = UIColor.blackColor()
headerCell.backgroundColor = UIColor.lightGrayColor()
return headerCell
}
}
return nil
}
cell for row at index path is also regular code。
从表视图委托方法添加一些代码。 –