I want to use the indexPath.row from my table view to serach for an element in an array in an other function when the button is pressed.
My first idea was to add an action for the button, but i can´t use a parameter using addTarget.
I read something about to create for every button a new tag, but i have no idea how to do it.