Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode - Disable interaction with cell with scrolling enable

From another view controller, I need to block the interaction of table view cells, but still allowing the scroll property.

I used:

table.userInteractionEnabled  = NO;
table.scrollEnabled = YES

but userInteractionEnabled disables all operations, including the scroll.

Is there any way to do that from table properties?

like image 244
doxsi Avatar asked Sep 10 '26 21:09

doxsi


1 Answers

From the attribute inspector

  • Selection

    enter image description here

Programmatically :-

cell.selectionStyle = UITableViewCellSelectionStyle.None // In CellforRowAtIndexPath
like image 167
tryKuldeepTanwar Avatar answered Sep 13 '26 04:09

tryKuldeepTanwar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!