I have to do a long press to select an option from a dropdown menu. I want the selection to be immediate. How can I solve this problem.
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var cell = UITableViewCell()
cell = countryTableView.dequeueReusableCell(withIdentifier: "countryCell", for: indexPath)
cell.textLabel?.text = country[indexPath.row]
return cell
}


