i am developing a application which has table view, 
each table view cell contains only Label,
i had set cell accessory type to CheckMark,
if i selects a row the checkmark appears 
everything is working up to this 

But when i selects a row and scroll downs a table view then CheckMark appears at other rows,
so please help me

i have attached the code below

```
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  tableView.deselectRowAtIndexPath(indexPath, animated: true)
  let selectRow = self.MytableView.cellForRowAtIndexPath(indexPath)!
  var can: Candy
  if tableView == self.searchDisplayController?.searchResultsTableView{
     can = self.filteredCandy[indexPath.row]
  }else{
     can = self.candies[indexPath.row]
  }
let name = "\(can.firstName) \(can.lastName)"
 if selectRow.accessoryType == UITableViewCellAccessoryType.None{
    selectRow.accessoryType = UITableViewCellAccessoryType.Checkmark
    selectRow.tintColor = UIColor.blackColor()
    DataStorageManager.sharedInstance.guests.append(name)
 }else{
    selectRow.accessoryType = UITableViewCellAccessoryType.None
    DataStorageManager.sharedInstance.guests == DataStorageManager.sharedInstance.guests.filter(){$0 != name}   
    }
}

```