Why Is didSelectRowAtIndexPath Not Being Called?
There are a few possible causes.
Edit mode is enabled
User interaction is not enabled
Delegate is not set
In your header file:
@interface YourViewController : UIViewController <UITableViewDelegate>
viewDidLoad of your implementation file:
Selection is not enabled
First responder issue
If nothing above worked, it’s most likely a first responder issue.
“You might have a UIView inside your row that is a first responder and takes your clicks away. Say a UIButton or something similar.”
- gilm on Stack OverflowPosted on 2018-03-26 #ios #objc