Ich machte eine Tabellenansicht, die die Zellen mit einigen Daten füllt, die gut funktioniert.Tabellenansicht Zellen mischen nach dem Scrollen (swift)
Das Problem ist, dass, wenn ich die Tabelle scrollen, alle Zellen gemischt werden, wissen Sie eine Möglichkeit, dies zu stoppen?
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
}
danke für den Tipp, behoben! –