셀을 일부 데이터로 채우는 테이블 뷰를 만들었습니다.스크롤 후 테이블 뷰 셀이 혼합됩니다 (신속한)
문제는 내가 테이블을 스크롤 할 때 모든 셀이 섞여서 멈추는 방법을 알고 있습니까?
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let celda = tabla_reportes.dequeueReusableCellWithIdentifier("celda", forIndexPath: indexPath) as! celdaReportes
switch indexPath.section {
case 0:
celda.datos = tipos
celda.back = UIColor.lightGrayColor()
case 1:
celda.index = indexPath.row
celda.datos = fillArrayWithData(datos[indexPath.row] as! NSDictionary)
celda.back = UIColor.clearColor()
default:
break
}
celda.delegate = self
return celda
}
팁 주셔서 감사합니다! –