Heinzi1991
Erfahrenes Mitglied
Hallo,
ich hab ein Problem, wo ich einfach keine Lösung finde!
Also hier erstmal mein Code:
Das Problem was ich jetzt habe, ist dass die Funktion "cellForRowAtIndexPatch" nicht aufgerufen wird, es steht nicht einmal "hello" in der Konsole, was kann ich machen damit diese Funktion aufgerufen wird.
ich hab ein Problem, wo ich einfach keine Lösung finde!
Also hier erstmal mein Code:
Code:
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.allSpotsObjects.count
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
println("hello")
let cell = self.tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! MasterTableViewCell
var object : PFObject = self.allSpotsObjects.objectAtIndex(indexPath.row) as! PFObject
cell.masterTitelLabel?.text = object["name"] as? String
cell.masterTextLabel?.text = object["town"] as? String
return cell
}
Das Problem was ich jetzt habe, ist dass die Funktion "cellForRowAtIndexPatch" nicht aufgerufen wird, es steht nicht einmal "hello" in der Konsole, was kann ich machen damit diese Funktion aufgerufen wird.