Пожалуйста, попробуйте это:
В tableView
cellForRowAtIndexPath
метод:
cell.yourCollectionView.tag = indexPath.row
В CollectionView
cellForRowAtIndexPath
метод:
cell.yourBtn.tag = collectionView.tag * 2000 + indexPath.item
В кнопке «Действие кнопки» напишите:
let collectionViewTag = sender.tag / 2000
let index = sender.tag % 2000
Это может вам помочь. Спасибо.