На моем столе у меня есть UIImageView, и мне нужно изменить изображение при выполнении действия салфетки. У меня класс для таблицы tableview, поэтому я изменил код, чтобы попробовать. Это код, но он не работает. Как мне это сделать?Изменить изображение UIImageView с помощью салфетки
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) -> CellTableViewFriends{
// you need to implement this method too or you can't swipe to display the actions
let cell = self.tableViewFriends.dequeueReusableCellWithIdentifier("CellTableViewFriends") as! CellTableViewFriends;
cell.imgArrow.image = UIImage(named: "myImage")
return cell
}