I'm attempting to present a UIAlertController
when a UITableViewCell
is selected. I have checked all the storyboard-related issues such as Selection: Single Selection
and even set tableView.allowsSelection = true
at the top of viewDidLoad()
. I also checked the issues of using didDeselect
as opposed to didSelect
.
Oddly enough the cell only selects when I tap it with two fingers at the same time or when I press it for a longer period of time (about 2s and then release). Is this a known problem?
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
print("Tap registered")
}
Any amount of help would be greatly appreciated.
I had similar problem but saw other posts noting that a UIGesture Recognizer attached to parent view was the problem. I had done just that. The Gesture recognizer was used to dismiss the keyboard. So for what it is worth make sure you take care when using an UIGestureRecognizer in a UITableView.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With