In a cell there are three buttons: Family, Friend, Accept. Initially Accept button is disabled and rest are enabled. What I want to do is when a user clicks on Family- Accept button should be enabled and Friend button should be disabled.
I tried everything.. still trying and searching for solution
{
let cell = tableView.dequeueReusableCell(withIdentifier: "friendRequestCell") as! friend
cell.selectionStyle = .none
cell.accept.addTarget(self, action: #selector(RequestsViewController.accept) , for: .touchUpInside)
cell.family.addTarget(self, action: #selector(RequestsViewController.family), for: .touchUpInside)
cell.friend.addTarget(self, action: #selector(RequestsViewController.friend), for: .touchUpInside)
return cell
}