Erster Set-Tag und Ziel für diese Schaltfläche in cellforrowatindex wie
cell.btn.tag = indexPath.row
cell.btn.addTarget(self, action: "getValue:", forControlEvents: UIControlEvents.TouchUpInside)
Dann erstellen Sie eine Funktion getValue,
@IBAction func getValue(sender : UIButton)
{
//Here you have to set button image like selected etc
// Here you have to get data from your array or dictionary based on index path
let dicObj = self.allData.objectAtIndex(sender.tag) as NSMutableDictionary
let firstName = dicObj.valueForKey("fname") as String
let lastName = dicObj.valueForKey("lname") as String
//Save records as you want it- your code here
}
Hope this will work for you.
Wo Möchten Sie die Daten speichern? Eine Alternative ist eine Eigenschaft "available" und das Speichern aller verfügbaren Zeilen, wenn das Fenster geschlossen wird. – Willeke