这样写
let cellId = "LimitCell"
var cell = tableView.dequeueReusableCellWithIdentifier(cellId) as? LimitCell
if cell == nil {
cell = LimitCell(style: .Default, reuseIdentifier: cellId)
}
不是这样写
let cellId = "LimitCell"
var cell = tableView.dequeueReusableCellWithIdentifier(cellId) as? LimitCell
if cell == nil {
cell = LimitCell()
}