I have a custom UITableViewCell with lot of buttons, textfields, labels and a view. I hide and show them where they are required on each indexpath. But for some reason/s rows are not clickable!
I even have done the following things via code to make sure that if something is going on fishy in IB, it can be fixed via these lines but of no use.
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
cell.userInteractionEnabled = YES;
I am wondering if hidden views are the culprit here or something else?
try this tableView.allowsSelection=YES;
and you can implement -(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:
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