【发布时间】:2015-10-12 06:50:48
【问题描述】:
我需要通过单击同一单元格中的按钮来更新标签。为什么我的代码不起作用?
@IBAction func actionFaveUnfave(sender: AnyObject) {
let cell = self.tableView.cellForRowAtIndexPath(sender.indexPath)
println(cell?.labelFavedTimes)
cell.labelFavedTimes = "22"}
【问题讨论】: