Mac Catalyst tableView.allowsMultipleSelection = true

Hello there :)

I have a UITableView where I have tableView.allowsMultipleSelection = true. This works just fine on iOS, i.e., I can select/deselect zero, one or more cells...

But on Mac Catalyst (macOS 10.15.7) I have the following problems:

1) I cannot select more than one cell. I have tried to Cmd+click and Ctrl+click but it makes no difference.

2) If I iterate over all the cells and programmatically selects them all then tableView.indexPathsForSelectedRows always returns the last selected IndexPath only.

In both cases I have checked that tableView.allowsMultipleSelection = true is still true afterwards.

This is really frustrating as I wanted to ready my app for Mac Catalyst and kinda assumed that UITableView was fully supported...

Any clues why this isn't working for me? Any workarounds?

Thanks!

Best regards,

Jens Schwarzer
Answered by bims in 642428022
Great news!

Just tested this on macOS Big Sur Beta 20A5395g and here it works just like on iPhone! Happy days! :D
Accepted Answer
Great news!

Just tested this on macOS Big Sur Beta 20A5395g and here it works just like on iPhone! Happy days! :D
Mac Catalyst tableView.allowsMultipleSelection = true
 
 
Q